当您的应用程序处于后台模式时,如何以编程方式拍摄设备屏幕的快照或视频?
当应用程序处于后台时,如何以编程方式拍摄设备屏幕的快照。或者如何在应用程序处于后台时制作设备屏幕的视频。
也许可以使用私有 api,所以请告诉我。
我想制作一个应用程序,可以在不越狱的情况下使用或不使用私有 api 记录您的设备屏幕。
How to take snapshot of your device screen when app is in background programmatically. Or how to make a video of your device screen when app is in background.
Maybe it's possible to make using private api, so tell me them, please.
I want to make an app that will record your device screen using or not private api without jailbreak.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
然而,通过苹果的公共/记录的 API 是不可能实现这一点的,如果通过私有 API 您能够实现相同的目标,那么您将无法将其提交到 AppStore。
This is however not possible through apple's public/documented APIs and if through private APIs you were able to achieve the same then you will not be able to submit it to AppStore.
在 xCode Organizer 中,如果您已加入 Developer 计划,则可以连接您的设备,并从那里截取屏幕截图。连接您的设备,转到管理器并单击您的设备。列表中会有一个名为“屏幕截图”的部分 - 运行您的应用程序,然后单击右下角的“新屏幕截图”。
如果该应用程序正在设备上运行,只需按一下主页按钮和顶部按钮即可为您的照片截取屏幕截图 - 您可以对它们执行您想要的操作,或者使用 iPhoto 导入它们。
如果您还没有注册,您可以通过在 OS X 中按 command-shift-4 从 iPhone / iPad 模拟器截取屏幕截图,拖出您想要截取的屏幕区域,它就会这样做。
您可以使用 Quicktime 拍摄屏幕视频。请参阅此处:http://thenextweb.com/apple/2011/01/15/how-to-record-quick-easy-screencast-videos-with-mac-osx/
In the xCode organiser, if you have joined the Developer program, you can connect your device, and take a screenshot from there. Attach your device, go to Organiser and click on your device. There will be a section in the list called screenshots - run your app, then click on 'new screenshot' in the bottom right.
If the app is running on the device, pressing the home and top buttons briefly will capture a screenshot you your photos - you can them do what you want with them, or import them using iPhoto.
If you haven't signed up, you can take a screen shot from the iPhone / iPad simulator by pressing command-shift-4 in OS X, drag out an area of the screen you want to snap, and it will do so.
You can take videos of the screen using quicktime. See here: http://thenextweb.com/apple/2011/01/15/how-to-record-quick-easy-screencast-videos-with-mac-osx/