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

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -