Search code examples
xcode6today-extension

How to use a UITextField in today extension in xcode 6?


I have created an extension for notification center and I wanna get some text inputs from the user. There is no problem with adding and interacting with the text fields. but when the text field gets focus keyboard will appear under the notification center. so. How can I fix this problem?!!!


Solution

  • The keyboard will never appear, because using the keyboard is not supported in today extensions. Apple's App Extension Programming Guide notes that

    In particular, note that iOS widgets don’t support keyboard entry.

    You can use buttons but you can't get iOS to display a keyboard.