I want to make textfield non editable when application first time launched.
And I am having a UIBarbutton item by tapping it, it will make textfield editable.
i am trying below code but not working .
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField{
if(edit == NO){
textField.enabled = NO;
}
if(edit == YES){
textField.enabled = NO;
}
return YES;}
You should use this method
after click bar button set it to yes in Button Click method.