How to disable UITextField’s edit property? [duplicate]

To disable editing in UITextField you need to return NO in delegate method textFieldShouldBeginEditing:

- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField{
    return NO;
}

To disable editing in UITextView set property editable to NO:

[textView setEditable:NO];

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)