- (BOOL)textFieldShouldReturn:(UITextField *)textField {
if ([textField isFirstResponder])
{
[textField resignFirstResponder];
NSLog(@"text field was first responder");
}
else
{
[textField becomeFirstResponder];
[textField resignFirstResponder];
NSLog(@"text field was not first responder");
}
NSLog(@"textfieldshouldreturn");
return YES;
}
No comments:
Post a Comment