I want to know how to disable UITextField, i.e. I placed UIButtonin the frame UITextFieldfor design purposes.
When I press the button in UITextField, the keyboard appears, but I do not want the keyboard to appear!
Here is my code:
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
return textField !=textfiled1;
return textField !=textfiled2;
}
source
share