How to take screenshot of entire screen on a Jailbroken iOS Device?

淺唱寂寞╮ 提交于 2019-11-29 18:04:55

If you are on a Jailbroken environment, you can use the private UIImage method _UICreateScreenUIImage:

OBJC_EXTERN UIImage *_UICreateScreenUIImage(void);

// ...

- (void)takeScreenshot {
    UIImage *screenImage = _UICreateScreenUIImage();
    // do something with your screenshot
}

This method uses CARenderServerRenderDisplay for faster rendering of the entire device screen. It replaces the UICreateScreenImage and UIGetScreenImage methods that were removed in the arm64 version of the iOS 7 SDK.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!