ios - Rightview on UITextField does not disappear on editing -



ios - Rightview on UITextField does not disappear on editing -

i have rightview on uitextfield mode uitextfieldviewmodeunlessediting, should disappear when editing textfield.

but when start editing textfield programatically when press rightview (an edit button) rightview not disappear immediately. disappears when start typing something.

so why editing uitextfield start on typing , not on becoming first responder? how prepare this?

add < uitextfielddelegate > interface.

then set delegate or textfield self (either in ib or) illustration in viewdidload:

self.thetextfield.delegate = self;

add method .m :

-(void)textfielddidbeginediting:(uitextfield *)textfield{ // whatever supposed happen when begin edit textfield happens }

ios objective-c uitextfield editing

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -