简体   繁体   中英

How can I make a screenshot of iPhone desktop programmatically?

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

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

UIGetScreenImage should do what you want - check out this example . 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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