Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has be
来源:互联网 发布:时间碎片交友软件 编辑:程序博客网 时间:2024/05/19 20:49
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.
问题分析:iPhone5S有问题,iPad2没问题。看了iPhone5S中系统的拍照也是有同样问题,判断为系统bug。
官方UIImagePickerController的例子,自己实现拍照按钮,在iPhone5S上正常。
https://developer.apple.com/LIBRARY/IOS/samplecode/PhotoPicker/Listings/PhotoPicker_APLViewController_m.html#//apple_ref/doc/uid/DTS40010196-PhotoPicker_APLViewController_m-DontLinkElementID_6
这是一个老外写的UIImagePickerController的例子,简单使用,在iPhone5S上黑屏。
https://github.com/bartvandeweerdt/CameraTest
看了黑屏时,View的层级,有一个黑色的CAMBlurredSnapshotView覆盖在上面。手动把其removeFromSuperView,预览只有一帧,并不会更新。
问题解决:此bug为系统bug。从iOS8.0到iOS8.1都有,苹果并没有修复。并不是每台都有这个问题,但是一旦有这个问题,就会一直存在,除非重装系统。
现在的解决办法只有参考官方例子自己实现拍照按钮。
- 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
- Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has be
- 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.
- ios9微信支付报警告: Snapshotting a view that has not been rendered results in an empty snapshot. Ensure yo
- ios8调用相机报警告: 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.
- 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.)
- "SetDestination" can only be called on an active agent that has been placed on a NavMesh.
- 解决警告:View.propTypes has been deprecated and will be removed in a future version of ReactNative
- 运行spark问题:Initial job has not accepted any resources; check your cluster UI to ensure that workers a
- Finalizing a Cursor that has not been deactivated or closed
- 【BUG】 "SetDestination" can only be called on an active agent that has been placed on a NavMesh.
- Move can only be called on an active agent that has been placed a Navmesh的解决办法
- "SetDestination" can only be called on an active agent that has been placed on a NavMesh. 解决办法
- ios 8行代码教你搞定导航控制器全屏滑动返回效果
- 陈经 《大投资》(转载)
- Java读取文件夹大小的6种方法及代码
- Java EE 6.0 的 Cookie 类已经有设置 HttpOnly 的方法
- java SE复习笔记36
- Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has be
- SQL2005四个排名函数(row_number、rank、dense_rank和ntile)的比较
- leetcode 53 Maximum Subarray
- IDLE设置主题
- [扩展KMP][HDU3613][Best Reward]
- 升级了xcode7 & ios9调微信API提示未安装微信客户端解决方案
- Android Notification的使用
- phpcms自定义字段原理介绍
- C语言指针参数陷阱