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
Post a Comment