Display custom keyboard with storyboard on iOS

Ok, so I am developing a custom keyboard for iOS in Xcode 7.1 and I ran into a problem ...

Using NSExtensionPrincipalClass , the finished solution works fine, but when I use Storyboard and replace this plist entry with "NSExtensionMainStoryboard", it only works on the Simulator, not the physical device ... On the physical device, it simply switches to the previous keyboard when trying to select it ...

In other SO posts, I saw people say that setting RequestsOpenAccessto TRUE worked for them, but no luck here ...

Below you can see my incremental entry in plist...

<key>NSExtension</key>
<dict>
  <key>NSExtensionMainStoryboard</key>
  <string>Keyboard</string>
  <key>NSExtensionAttributes</key>
  <dict>
    <key>IsASCIICapable</key>
    <false/>
    <key>PrefersRightToLeft</key>
    <false/>
    <key>PrimaryLanguage</key>
    <string>en-US</string>
    <key>RequestsOpenAccess</key>
    <true/>
  </dict>
  <key>NSExtensionPointIdentifier</key>
  <string>com.apple.keyboard-service</string>
</dict>

, , , - ?

Xcode :

'xxx'

'xxx'

, ? ...

+4
1

, Is Initial View Controller . , VC.

: enter image description here

+2

Source: https://habr.com/ru/post/1614282/


All Articles