How to take screenshot for the entire screen no matter which app is at front most in iOS 7(Jailbroken)

后端 未结 4 874
逝去的感伤
逝去的感伤 2021-02-01 23:55

Before iOS7 I use UIGetScreenImage() function to take the screenshot easily, but in iOS7, it becomes deprecated, now are there any good methods to archive this?Than

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-02 00:26

    The UIView class has an method called: resizableSnapshotViewFromRect:afterScreenUpdates:withCapInsets .

    But i have never worked with this method so i cannot tell you more about it.

    And this post: Capture UIView as UIImage shows how you get the returned UIView into an image.

    hope it is usefull.

提交回复
热议问题