Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户制作屏幕截图(按住主页按钮+电源)时,是否有任何方法可以在应用程序中调用???或者可以调用哪些方法?像 applicationDidBecomeActive 还是别的什么?谢谢...
您可以使用此答案中的代码定期检查库中的最新照片。
然后检查一些属性,看看它是否来自相机或其他来源:
在 iOS 4.0 中,有一个通知已触发PictureWasTakenNotification,但在 iOS 5.0 或更高版本中不再存在。
PictureWasTakenNotification