在屏幕更新后调用drawViewHierarchyInRect时,iOS8缩放毛刺:是 [英] iOS8 scale glitch when calling drawViewHierarchyInRect afterScreenUpdates:YES
问题描述
我正在将项目从iOS7转换为iOS8,它使用自定义转换,需要在完成加载 afterScreenUpdates:YES
之后捕获模态,并且看到整个屏幕比例一秒钟后缩小规模。当在iOS8上转换为照片时,我也会在部分和Yelp应用程序之间的iOS版Flickr应用程序中看到这种情况。
I was converting a project from iOS7 to iOS8 which uses custom transitions and needs to capture the modal after it finishes loading afterScreenUpdates:YES
and was seeing that the entire screen scale up for a second and scale back down. I also see this happening in the Flickr app for iOS between sections and on Yelp app when transitioning to a photo on iOS8.
UIGraphicsBeginImageContextWithOptions(self.view.frame.size, YES, 22.0);
[self.view drawViewHierarchyInRect:self.view.frame afterScreenUpdates:YES];
UIGraphicsEndImageContext();
添加更大的比例因子有助于更多地强调故障......但我只是在调用它示例中的按钮按下。
Adding a larger scale factor helps emphasize the glitch more... but i'm just calling this on a button press in the example.
编辑这似乎发生在iPhone 6和6上,而不是5上。
EDIT This appears to happen on iPhone 6 and 6 plus not on the 5.
推荐答案
似乎在iOS9 / XCODE 7版本中修复了
Appears to be fixed in iOS9 / XCODE 7 builds
这篇关于在屏幕更新后调用drawViewHierarchyInRect时,iOS8缩放毛刺:是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!