简体   繁体   English

如何捕获其他iPhone应用程序的屏幕截图?

[英]How to capture a screenshot of other iPhone application?

I am new to iOS development. 我是iOS开发的新手。 I want to develop a screenshot application in iPhone and iPad. 我想在iPhone和iPad中开发一个屏幕截图应用程序。 Is it possible in iOS. 在iOS中有可能吗? I want to capture screenshot of all application in iPhone. 我想捕获iPhone中所有应用程序的屏幕截图。 Is it legal to do so? 这样做合法吗?

Thanks 谢谢

It is illegal, but the iOS app Display Recorder did it with a framework called IOSurface , which manages a rectangular pixel buffer at the kernel level. 这是非法的,但是iOS应用程序Display Recorder使用名为IOSurface的框架来做到这一点,该框架在内核级别管理矩形像素缓冲区。 You will not be able to detect shake events at the kernel level, but you can record a fairly shaky stream with the pixel buffer and have the user select the appropriate image. 您将无法在内核级别检测到抖动事件,但是可以使用像素缓冲区记录相当不稳定的流,并让用户选择适当的图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM