Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 296
MiuMiu Avatar asked Jul 07 '14 07:07

MiuMiu


People also ask

What is a text field on Iphone?

A text field is a rectangular area in which people enter or edit small, specific pieces of text.

What is Uitextfield?

An object that displays an editable text area in your interface.


1 Answers

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

like image 91
Tom Avatar answered Sep 21 '22 10:09

Tom