uitextfield - Detect edit event on a textField view in iOS -


i have cell array not in cell collection or uitable. how detect edit event on 1 of cells?

first of all, set tags textfields. can recognise current textfield.

[textfield settag:101]; 

set delegate each textfield.

[textfield setdelegate:self]; 

and @ last use uitextfield delegate textfielddidbeginediting detecting "edit"

    - (void)textfielddidbeginediting:(uitextfield *)textfield{             if(textfield.tag == 101){                //do             }        } 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -