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