观察 UIApplicationUserDidTakeScreenshotNotification
通知可以通知用户是否通过按下主页按钮+电源按钮来截屏。问题是如何获取新的截屏图像?
// observe screenshot notification
NSOperationQueue *mainQueue = [NSOperationQueue mainQueue];
[[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationUserDidTakeScreenshotNotification
object:nil
queue:mainQueue
usingBlock:^(NSNotification *note) {
// How to get screenshot image?
}];