Snapshot methods broken on iPhone 6 device and simulator

倾然丶 夕夏残阳落幕 提交于 2019-12-03 22:40:35

We are seeing this same issue when running the following code:

[window drawViewHierarchyInRect:window.bounds afterScreenUpdates:YES];

The only solution that we have found so far is to make sure that the application has launch images sized for the iPhone 6 and 6+ and then we no longer are getting the flickering.

Following on from Ryans solution, I added a launch screen xib (or storyboard) and this resolved the issue on the iPhone 6 and 6 plus.

So make sure you have it set in your project settings, it should end up looking something like this:

natanavra

It seems to be a bug on Apple's side that occurs on scaled apps (those that have no design/assets/layout support for iPhone 6/6+) This one helped me get over it: snapshotViewAfterScreenUpdates glitch on iOS 8

Basically uses: [view.layer renderInContext:UIGraphicsGetCurrentContext()];

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!