[Number.editable = NO]; [Number resignFirstResponder]; [Password.editable = NO]; [Password resignFirstResponder];
I am getting the
Also, you can use the delegate methods.
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField { return NO; }
That would do the trick, I prefer this method over setting textField.enabled = YES when it's likely that the ability to edit will change during the lifecycle of the app.