How to check the “Allow Full Access” is enabled in iOS 8?

后端 未结 15 1252
醉酒成梦
醉酒成梦 2020-12-02 07:53

In iOS 8, when develop a custom keyboard and set RequestsOpenAccess property to YES in info.plist, there is a toggle button at Settings-> Add New Keyboard named \"Allow Full

15条回答
  •  时光说笑
    2020-12-02 08:09

    Useful Swift solution by @hoiberg42:

    func isOpenAccessGranted() -> Bool {
        return UIPasteboard.generalPasteboard().isKindOfClass(UIPasteboard)
    }
    

    Works like a charm!

提交回复
热议问题