snapshotViewAfterScreenUpdates glitch on iOS 8

后端 未结 3 1933
Happy的楠姐
Happy的楠姐 2021-02-01 19:13

I\'ve noticed running this would cause view (or main window, not sure) to resize for a moment, when running on iPhone 6/6+ simulator scaled from iPhone 5 layout (without passing

3条回答
  •  一整个雨季
    2021-02-01 19:34

    It seems like @anon and @PJC are right and that's a UIKit's bug. It sometimes can be workarounded by [view.layer renderInContext:UIGraphicsGetCurrentContext()]

    At this point I've solved the problem for myself by manually adjusting layouts for iPhone 6/6+, as on native device resolutions the issue does not reproduce.

提交回复
热议问题