swift - Call UITextField Editing Did Begin only once -


when user click on textfield send them screen (using editing did begin) can select option wants (i use textfield design purpose cant change button or pickerview or etc)

the question is, when selects option wants pop view , send value textfield screen (using delegate).

now tried textfield.resignfirstresponder() not work, since textfield still selected action goes loop. can use textfield.isdisable user can't change value anymore.

i can fix simple putting

if(textfield.text != "") {  return } 

in textfield action. far away solution, more band-aid on leak.

and if user select textfield again since have if above in code not go select screen unless delete entire text.

how can solve this? since resignfirstresponder not working. maybe im doing wrong?

please set delegate textfield

textfieldname.delegate = self 

Comments

Popular posts from this blog

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -