본문 바로가기
모바일개발(Mobile Dev)/IOS개발(ObjectC)

textfields Readonly

by 테크한스 2015. 12. 15.
반응형



This would be the simplest of all , when you multiple textfields too:

in viewDidLoad:(set the delegate only for textfields which should not be editable.

self.textfield.delegate=self;

and insert this delegate function:

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

Thats it!

반응형