ios下打开相机遇到的闪退问题 (Snapshotting a view that has not been rendered results in an empty snapshot.)
2013-12-30 16:15
656 查看
Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen
updates.
开始以为是这句话 所以一直找关于这句话的 结果找了2个小时 终于知道了ios7的UIImagePickerController是竖屏的 结果游戏是横屏所以一打开就闪退了
[b]解决方案:[/b]
ios文件夹下得AppController
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
return UIInterfaceOrientationMaskAll;
}
然后在使用UIImagePickerController的viewController
- (NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskLandscape;
}
updates.
开始以为是这句话 所以一直找关于这句话的 结果找了2个小时 终于知道了ios7的UIImagePickerController是竖屏的 结果游戏是横屏所以一打开就闪退了
[b]解决方案:[/b]
ios文件夹下得AppController
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
return UIInterfaceOrientationMaskAll;
}
然后在使用UIImagePickerController的viewController
- (NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskLandscape;
}
相关文章推荐
- ios下打开相机遇到的闪退问题 (Snapshotting a view that has not been rendered results in an empty snapshot.)
- iOS开发打不开相册相机,并报Snapshotting a view that has not been rendered results in an empty snapshot.
- ios8调用相机报警告: Snapshotting a view that has not been rendered results in an empty snapshot. Ensure you
- ios8调用相机报警告: Snapshotting a view that has not been rendered results in an empty snapshot?
- ios8调用相机报警告: Snapshotting a view that has not been rendered results in an empty snapshot. Ensure you(转)
- ios8调用相机报警告: Snapshotting a view that has not been rendered results in an empty snapshot. Ensure yo
- Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has be
- Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has be
- ios9微信支付报警告: Snapshotting a view that has not been rendered results in an empty snapshot. Ensure yo
- Snapshotting a view that has not been rendered results in an empty snapshot.
- IIS7.0 An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode
- An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
- code:block运行遇到It seems that this project has not been built yet.问题解决
- An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
- jmeter3.2生成图形html遇到的问题Error in NonGUIDriver java.lang.IllegalArgumentException: Results file:log is not empty
- 使用eclipse测试osgi遇到的问题--“Workbench has not been created yet”
- quartz使用时遇到的问题Bean property 'xxx' is not writable or has an invalid setter method. Did you mean 'xxx
- iOS常见问题之 The 'Apple Developer Program License Agreement' has been updated. In order to access certai
- Android安装 Location of the Android SDK has not been setup in the preferences 问题
- CI环境搭建----搭建repo服务器中遇到的问题1:fatal: branch 'stable' has not been signed