Can I disable custom keyboards (iOS8) for my app?

后端 未结 4 1822
再見小時候
再見小時候 2020-12-08 04:45

EDIT: tl;dr - it is possible, see accepted answer below.

Is there any (not only programatic) way of preventing custom keyboards (iOS8) from being us

4条回答
  •  既然无缘
    2020-12-08 05:16

    Swift 3 :

    func application(_ application: UIApplication, shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplicationExtensionPointIdentifier) -> Bool {
        if extensionPointIdentifier == UIApplicationExtensionPointIdentifier.keyboard {
            return false
        }
        return true
    }
    

提交回复
热议问题