[英]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.