简体   繁体   English

如何以编程方式制作iPhone桌面的屏幕截图?

[英]How can I make a screenshot of iPhone desktop programmatically?

我需要制作iphone桌面的屏幕快照并将其设置为我的应用程序的背景,可以吗?

如果您想拍摄屏幕截图,则需要同时按下菜单按钮和锁定按钮(将其设置为应用程序的背景),只需使用将自动放置在相机胶卷中的图像即可。

UIGetScreenImage should do what you want - check out this example . UIGetScreenImage应该执行您想要的操作-查看此示例 But apparently, Apple (in its great wisdom) has banned its usage in apps for the App Store , and has removed it from iOS 7 arm64 and newer. 但是显然,苹果公司(非常聪明)已经禁止在App Store的应用程序中使用它,并已将其从iOS 7 arm64和更高版本中删除。

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

相关问题 如何以编程方式拍摄iPhone的屏幕截图? - how to take a screenshot of the iPhone programmatically? 如何使 iPhone 应用程序中的 SQLite 数据库可用于桌面? - How can I make an SQLite database within an iPhone app available to the desktop? 如何在iPhone中以编程方式发送短信 - how can i send sms programmatically in iphone 是什么导致无法在管理器窗口中从iPhone应用程序进行屏幕截图的问题导致的? - What can be causing the problem that I can't make a screenshot from my iPhone app in the Organizer window? 如何以编程方式点击UIImageView在iPhone上做点什么? - How do I programmatically make clicking on a UIImageView do something on the iPhone? 当我的App运行时,如何以编程方式获取LIVE屏幕截图? - How can I get a LIVE screenshot programmatically, when my App is running? 如何以编程方式确定iPhone上的默认铃声? - How can I programmatically determine the default ringtone on an iPhone? 如何在iOS 5中的iPhone上以编程方式发起电话呼叫? - How can I initiate a phone call programmatically on the iPhone in iOS 5? 如何以编程方式将参与者添加到我的日历活动iPhone中? - How can I add participants to my calendar event iPhone programmatically? 如何以编程方式获取iPhone的蓝牙MAC地址? - How can I programmatically get the Bluetooth MAC address of an iPhone?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM