2

I have a Today Extension and I have a textfield and button and what I want to do is if textfield.hasText == true do something and if textfield.hasText == false then i want to show an alert within the widget

cs4alhaider
  • 1,318
  • 1
  • 17
  • 26

1 Answers1

0

First of all, Keyboard Entry is not allowed in iOS Extensions, so have a UITextField in Today Widget doesn't make any sense.

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.

PGDev
  • 23,751
  • 6
  • 34
  • 88