大意说,这个CGRect不考虑任何旋转,用的时候一定要对这个rect进行坐标转换(convertRect:)。
如:
- CGRect _rect =[[info objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue];
- CGRect _convertRect=[self.view convertRect:_rect fromView:nil];
(这里找到资料说,The first view should be your view. The second view should be nil, meaning window/screen coordinates. )