大佬教程收集整理的这篇文章主要介绍了允许完全访问权限检查键盘iOS10,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
-(BOOL)isOpenAccessGranted{ return [UIPasteboard generalPasteboard]; }
我搜索了最新的Developer Guide for UIPasteboard,但无法解决.有没有人有一个适当的解决方案.
P.S:新手机和iOS更新案例修复后.
– 斯威夫特2.3–
static func isFullAccessGranted() -> Bool { if #available(iOSApplicationExtension 10.0,*) { if UIPasteboard.generalPasteboard().hasStrings { return true } else if UIPasteboard.generalPasteboard().hasURLs { return true } else if UIPasteboard.generalPasteboard().hasColors { return true } else if UIPasteboard.generalPasteboard().hasImages { return true } else // In case the pasteboard is blank { UIPasteboard.generalPasteboard().String = "" if UIPasteboard.generalPasteboard().hasStrings { return true }else { return false } } } else { // before iOS10 if UIPasteboard.generalPasteboard().isKindOfClass( UIPasteboard) { return true }else { return false } } }
– Swift 3.0–
static func isFullAccessGranted() -> Bool { if #available(iOSApplicationExtension 10.0,*) { if UIPasteboard.general.hasStrings { return true } else if UIPasteboard.general.hasURLs { return true } else if UIPasteboard.general.hasColors { return true } else if UIPasteboard.general.hasImages { return true } else // In case the pasteboard is blank { UIPasteboard.general.String = "" if UIPasteboard.general.hasStrings { return true }else { return false } } } else { // before iOS10 return UIPasteboard.general.isKind(of: UIPasteboard.self) } }
以上是大佬教程为你收集整理的允许完全访问权限检查键盘iOS10全部内容,希望文章能够帮你解决允许完全访问权限检查键盘iOS10所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。