ios-keyboard-extension

How to Insert NSAttributedString using custom keyboard extension?

﹥>﹥吖頭↗ 提交于 2019-11-30 12:57:05
I want to write text in some custom fonts using keyboard Extension as these apps ( 1 , 2 , 3 , 4 ) are doing. I know how we can insert normal string in document proxy. [self.textDocumentProxy insertText:mystring]; I have tried to insert NSAttributedString using above approach but I can't see any way to insert NSAttributedString to document proxy. Some one can guide what will the best way to get rid of this issue? any suggestion will be appreciated. It is not possible to insert attributed strings (or otherwise rich content) using the text document proxy. The keyboards you have linked are not

Open Keyboard's settings screen in iOS's settings app programmatically from another app

会有一股神秘感。 提交于 2019-11-30 05:30:45
How can we go directly to any of the below mentioned screens of iOS's settings app programmatically UPDATE As other users have pointed out this solution does not work anymore with iOS10. If anyone has an idea how to make it work in iOS10, please let us know. Solution for iOS < 10: To open the settings (of your own app) you can use the UIApplicationOpenSettingsURLString constant: if let settingsURL = NSURL(string: UIApplicationOpenSettingsURLString) { UIApplication.sharedApplication().openURL(settingsURL) } This was introduced in iOS 8, so you can use it on devices that run iOS8 or later. But

How to Insert NSAttributedString using custom keyboard extension?

↘锁芯ラ 提交于 2019-11-29 18:20:23
问题 I want to write text in some custom fonts using keyboard Extension as these apps (1,2,3,4) are doing. I know how we can insert normal string in document proxy. [self.textDocumentProxy insertText:mystring]; I have tried to insert NSAttributedString using above approach but I can't see any way to insert NSAttributedString to document proxy. Some one can guide what will the best way to get rid of this issue? any suggestion will be appreciated. 回答1: It is not possible to insert attributed strings

Open Keyboard's settings screen in iOS's settings app programmatically from another app

烂漫一生 提交于 2019-11-29 03:10:39
问题 How can we go directly to any of the below mentioned screens of iOS's settings app programmatically 回答1: UPDATE As other users have pointed out this solution does not work anymore with iOS10. If anyone has an idea how to make it work in iOS10, please let us know. Solution for iOS < 10: To open the settings (of your own app) you can use the UIApplicationOpenSettingsURLString constant: if let settingsURL = NSURL(string: UIApplicationOpenSettingsURLString) { UIApplication.sharedApplication()

How does Google's custom iOS keyboard, Gboard, programmatically dismiss the frontmost app?

自闭症网瘾萝莉.ら 提交于 2019-11-26 22:38:19
问题 Google's custom iOS app, Gboard, has an interesting feature that can't be accomplished using public APIs for in the iOS SDK (as of iOS 10). I'd like to know exactly how Google accomplishes the task of programmatically popping back one app in the App Switching stack in Gboard. Custom iOS keyboards have two major components: the container app and the keyboard app extension. The keyboard app extension runs in a separate OS process that is started up whenever a user is in any app on their phone