[iOS]How to make a “snapshot” of the current view's state

前端 未结 3 371
误落风尘
误落风尘 2020-12-03 14:43

I need to make a snapshot or a screenshot - call it as you like- of the current view and then display it in the modal view.

Because if I just write this in the Moda

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-03 15:11

    UIView *viewSnapShop = [self snapshotViewAfterScreenUpdates:NO];
    

提交回复
热议问题