UITextView는 모달 컨트롤러보기의 하위보기입니다. UITextView의 아래쪽 경계 y 좌표가 키보드의 위쪽 y 좌표와 같도록 키보드가 나타날 때 UITextView 높이를 줄여야합니다. I'getting 키보드 높이iPad의 UIModalPresentationFormSheet. 키보드가 나타날 때 UITextView 높이를 조절하는 방법
CGRect frameBegin = [[notification.userInfo objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue] ;
CGRect frameEnd = [[notification.userInfo objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue];
CGRect resultBegin = [self.view convertRect:frameBegin fromView:nil];
CGRect resultEnd = [self.view convertRect:frameEnd fromView:nil];
CGFloat kbdHeight = resultBegin.origin.y - resultEnd.origin.y;
문제는 키보드가 나타날 때이 모달 뷰가 이동한다는 것입니다. 이 경우 키보드의 상단 테두리 좌표를 계산하는 방법은 무엇입니까?
질문을 한 이후로 많은 일이있었습니다. 어쨌든 대답에 감사드립니다. – Michael