Search code examples
ioswidgettextfieldios8ios-app-extension

iOS 8 Today Extension: Is it possible to add editable text field?


I am trying to create a simple Today Extension. I was able to add a label wherein the value can be updated via the main app. Now, I am exploring the possibility to update the value in main app via the extension. However, when I tried to add a textfield, I cannot input anything.

Is this a limitation of the extension? If not, can you please guide me how to accomplish this? Thank you very much!


Solution

  • Unfortunately, it is a limitation.

    It says in Apple's extension programming guide:

    Because user interaction with Today widgets is quick and limited, you should design a simple, streamlined UI that highlights the information users are interested in. In general, it’s a good idea to limit the number of interactive items in a widget. In particular, note that iOS widgets don’t support keyboard entry.

    https://developer.apple.com/library/content/documentation/General/Conceptual/ExtensibilityPG/Today.html#//apple_ref/doc/uid/TP40014214-CH11-SW1