I want to know how to disable UITextField
, i.e I placed a UIButton
in the frame of UITextField
for design purpose.
When I tap my button in UITextField
the keyboard appears, but I don't want the keyboard to be displayed!
Here is my code so far:
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
return textField !=textfiled1;
return textField !=textfiled2;
}