키보드가 텍스트를 숨기는 것을 방지하기 위해 이전 버전의 iOS에서 올바르게 작동하는 다음 코드를 사용하고 있습니다. iOS 8에서는 아무 일도 일어나지 않습니다.iOS 8 키보드가 표시 될 때 UITextView가 슬라이딩되지 않음
- (BOOL)textViewShouldBeginEditing:(UITextView*)textView {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5];
CGRect frame = self.view.bounds;
frame.size.height = frame.size.height - [Application keyboardHeight];
noteView.frame = frame;
[UIView commitAnimations];
return YES;
}
- (void)textViewDidEndEditing:(UITextView *)textView {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.1];
noteView.frame = self.view.bounds;
[UIView commitAnimations];
}
어쩌면 나는 바보 같은 것을 놓치고 있지만, 무슨 일이 일어나고 있는지 이해할 수 없습니다.