Prevent custom keyboard in textfield

后端 未结 4 1969
粉色の甜心
粉色の甜心 2021-01-04 06:55

I was experimenting with how a custom keyboard affects my app. I installed Swype on my iPhone 6.

I find that in some of my views where I have custom inputView prop

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-04 07:36

    Swift 4

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

提交回复
热议问题