Snapshot methods broken on iPhone 6 device and simulator

前端 未结 3 1680
谎友^
谎友^ 2021-02-18 23:50

For some unknown reason there seems to be a possible bug with all screenshot methods on the iPhone 6 simulator (and device). Whenever I call any of the screenshot methods includ

3条回答
  •  误落风尘
    2021-02-19 00:18

    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()];

提交回复
热议问题