ios - Calling a event method on UI -


i have textfield so:

_txtfield1.returnkeytype = uireturnkeydone; 

how make call submit button pressed method?

- (void) submitbuttonpressed {     ... 

make sure class conforms uitextfielddelegate in header file, implement method:

- (bool)textfieldshouldreturn:(uitextfield *)textfield {     if(textfield == _txtfield1)     {         [self submitbuttonpressed];     } } 

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -