iOS 키보드 숨기는 방법 1. resignFirstResponder 사용 - textView에서 직접적으로 사용해야 함 //사용법 [textView resignFirstResponder]; 2. endEditing:(BOOL)force 사용 - textView를 포함하는 뷰에서 사용하여도 하위 뷰들의 키보드 처리를 알아서 해줌 - 매개변수는 optionally한 값으로 강제 처리에 관련된 값이다. - (void)viewDidLoad { [super viewDidLoad]; [self.view setBackgroundColor:[UIColor grayColor]]; UITextView *txtView = [[UITextView alloc] initWithFrame:CGRectMake(100.0f, 100.0f, 100.0f, 30.. 더보기 이전 1 2 3 4 5 6 7 8 ··· 37 다음