UIImage from a UIView created with snapshotViewAfterScreenUpdates:

前端 未结 1 955
不思量自难忘°
不思量自难忘° 2020-12-06 04:35

Is it possible to get a UIImage from a UIView created with snapshotViewAfterScreenUpdates?

A UIView returned from snapshotViewAfterScreenUpdates<

相关标签:
1条回答
  • 2020-12-06 05:06

    The answer seems to be NO and Apple's documentation implicitly confirms this:

    If you want to apply a graphical effect, such as blur, to a snapshot, use the drawViewHierarchyInRect:afterScreenUpdates: method instead.

    It's worth noting that the Implementing Engaging UI on iOS session from WWDC13 lists snapshotViewAfterScreenUpdates as the fastest method, but uses drawViewHierarchyInRect in the example code.

    0 讨论(0)
提交回复
热议问题