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.
可能重复: 通知或检测正在拍摄的屏幕截图?
目前,我意识到你不能在 iOS 应用程序中同时抓住主页和锁定按钮?如果我的结论是错误的,请指点我如何检测此事件。
谢谢,
- (void)applicationWillResignActive:(UIApplication *)application 当用户截取屏幕截图时,将调用您的应用程序委托方法。如果您想模拟 SnapChat,那么只需在此方法中隐藏您的窗口(请务必取消隐藏- (void)applicationDidBecomeActive:(UIApplication *)application)
- (void)applicationWillResignActive:(UIApplication *)application
- (void)applicationDidBecomeActive:(UIApplication *)application