iOS8 Custom Keyboard using Storyboards

前端 未结 2 1990
天命终不由人
天命终不由人 2021-02-07 19:53

Anyone know how to create a custom iOS keyboard in Xcode6 using storyboards? I\'ve built a keyboard fully using code using a single application template. It works fine, but I wa

2条回答
  •  花落未央
    2021-02-07 20:07

    Yes it's absolutely possible. Once you created your target extension, right click and add a New Storyboard. Inside this storyboard, you must define the Custom Class as a KeyboardViewController.

    Then, one thing is missing: you should add NSExtensionMainStoryboard with the name of your freshly created storyboard without the extension in the NSExtensionAttributes of your extension info.plist file and remove the NSExtensionMainClass property from it.

    A little clean and run and voilà! A keyboard that use a storyboard! Hope that will help!

提交回复
热议问题