当您的应用程序处于后台模式时,如何以编程方式拍摄设备屏幕的快照或视频?

发布于 2024-12-27 06:14:38 字数 153 浏览 2 评论 0原文

当应用程序处于后台时,如何以编程方式拍摄设备屏幕的快照。或者如何在应用程序处于后台时制作设备屏幕的视频。
也许可以使用私有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

难理解 2025-01-03 06:14:38

然而,通过苹果的公共/记录的 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.

梦里人 2025-01-03 06:14:38

在 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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文