ios 截屏监控

ios无法禁止截屏功能,但是可以监控到截屏操作。具体方法如下:
 


   [[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationUserDidTakeScreenshotNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *note){
        
                //监控到截屏操作


    }];
发布了16 篇原创文章 · 获赞 23 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/DARKSang/article/details/52413936