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

删除回忆录丶 提交于 2019-12-10 13:38:10

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/24605451/ios-8-today-extension-is-it-possible-to-add-editable-text-field

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!