반응형
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!
반응형
'모바일개발(Mobile Dev) > IOS개발(ObjectC)' 카테고리의 다른 글
Introduction to Auto Layout (0) | 2015.12.16 |
---|---|
아이폰6, 아이폰6+의 해상도 (0) | 2015.12.16 |
ABOUT UIBarButtonItems (0) | 2015.12.15 |
Failed to allocate data stores for 854269899 rows in section 0. Consider using fewer rows" (0) | 2015.12.15 |
couldn't use prepareForSegue to send some viewcontroller with navigation controller (0) | 2015.12.14 |