无论iOS 7(Jailbroken)中哪个应用程序位于最前端,如何为整个屏幕截取屏幕截图 [英] How to take screenshot for the entire screen no matter which app is at front most in iOS 7(Jailbroken)
问题描述
在iOS7之前,我使用 UIGetScreenImage()
函数来轻松截取屏幕截图,但在iOS7中,它已被弃用,现在有什么好方法可以存档吗?谢谢!
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?Thank you!
另外:我需要在任何视图中截取整个屏幕的截图
Addition: I need take screenshot for the entire screen at any view
推荐答案
我遇到了同样的问题,但没有想法如何解决它。
I came across the same problem, but have no ideas how to solve it.
我试过 IOSurface - IOS私有API - 捕获背景截图,在某些应用程序中运行良好但在游戏中返回黑屏。
I tried IOSurface - IOS Private API - Capture screenshot in background , which works well in some apps but returns a black screen in games.
然后我尝试了这个应用 https://github.com/k06a/UIView-FastScreenshot/blob/master/UIView%2BFastScreenshot.m ,使用私有api很好,但我无法使用theos编译它,总是elling me架构armv7的未定义符号:CARenderServerRenderDisplay。
编辑:我想出了如何使用theos编译它,但返回空图像。
Then I tried this app https://github.com/k06a/UIView-FastScreenshot/blob/master/UIView%2BFastScreenshot.m , which works well using private apis, but I can't compile it using theos, always telling me "Undefined symbols for architecture armv7: CARenderServerRenderDisplay". I figured out how to compile it using theos, but returns am empty image.
此外, https://github.com/coolstar/RecordMyScreen 在iOS7中运行良好,但它现在不是开源的,所以我无法找到它是如何捕获的整个屏幕。
Also, https://github.com/coolstar/RecordMyScreen works well in iOS7, but it's not open source now, so I can't find out how it capture the whole screen.
编辑:RecordMyScreen的代码在iOS7上作为跳板调整,你可以参考这个文件 https://github.com/coolstar/RecordMyScreen/blob/master/RecordMyScreen/CSScreenRecorder.m 此方法 - (void)_captureShot:(CMTime)frameTime;
RecordMyScreen's code works on iOS7 as a springboard tweak, you can refer to this file https://github.com/coolstar/RecordMyScreen/blob/master/RecordMyScreen/CSScreenRecorder.m this method "- (void)_captureShot:(CMTime)frameTime;"
这篇关于无论iOS 7(Jailbroken)中哪个应用程序位于最前端,如何为整个屏幕截取屏幕截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!