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

后端 未结 15 1256
醉酒成梦
醉酒成梦 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:07

    Apps with app group can use :

     func isOpenAccessGranted() -> Bool {
        let fm = NSFileManager.defaultManager()
        let containerPath = fm.containerURLForSecurityApplicationGroupIdentifier(
            AppGroup)?.path
        return fm.isWritableFileAtPath(containerPath!)
    }
    

提交回复
热议问题