您的位置:首页 > 移动开发 > IOS开发

iOS 截屏系统通知

2015-12-28 21:42 387 查看
    class func startMonitorScreenshot() {

        NSNotificationCenter.defaultCenter().addObserver(self.shared,        
selector: "userDidTakeScreenshot:", name:
UIApplicationUserDidTakeScreenshotNotification,
object:nil)

    }

    

    func userDidTakeScreenshot(noti:
NSNotification) {

        print("啊哈哈哈")

   
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  截屏 通知