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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -