问题描述:皮肤商店-自定义主题中有个拍照功能,iOS 8.1下旋转后需要歪脖子观看。
问题分析:UIImagePickerController在iOS 8.0中,不会随设备旋转。同事手动旋转来修复了这个bug。
8.1中,Apple修复了以上的这个bug。但是手动代码还是执行了,导致到了一次旋转。
问题解决:对8.0做特殊化处理:只有在8.0中采用手动旋转
问题描述:皮肤商店-自定义主题中有个拍照功能,iOS 8.1下旋转后需要歪脖子观看。
问题分析:UIImagePickerController在iOS 8.0中,不会随设备旋转。同事手动旋转来修复了这个bug。
8.1中,Apple修复了以上的这个bug。但是手动代码还是执行了,导致到了一次旋转。
问题解决:对8.0做特殊化处理:只有在8.0中采用手动旋转
问题描述:
在storyboard中勾选UIViewController的Hide Bottom Bar On Push属性,或者设置UIViewController的hidesBottomBarWhenPushed为YES。然后进行UINavigationController的push操作。切换ViewController时,导航栏右边会出现黑色类似阴影的东西。
问题分析:
此为iOS的bug,只能绕开hidesBottomBarWhenPushed。
问题解决:
可以通过在代码中控制UITabBarController的tabBar的hidden属性来隐藏bottom bar。
在需要隐藏的ViewController的ViewWillAppear中,将其设置为YES;在需要显示的VewController的ViewWillAppear中,将其设置为NO.
PS: under iOS8, Xcode beta6 GM
问题描述:输入法Extension中使用Notification监听UIApplicationDidChangeStatusBarOrientationNotification,发现userInfo中返回转屏前方向
问题分析:使用self.interfaceOrientation发现同样返回的是转屏前方向。查了下文档,发现:
UIApplicationWillChangeStatusBarOrientationNotification
Posted when the app is about to change the orientation of its interface.
UIApplicationDidChangeStatusBarOrientationNotification
Posted when the orientation of the app’s user interface changes.
问题解决:替换为UIApplicationWillChangeStatusBarOrientationNotification监听事件,返回正常
PS:Xcode6 beta5, iOS8 ,Keyboard Extension