override func viewDidLoad() {
super.viewDidLoad()
NSNotificationCenter.defaultCenter().addObserverForName(
UIApplicationUserDidTakeScreenshotNotification,
object: nil,
queue: NSOperationQueue.mainQueue())
{
notification in
println("Screen shot taken!")
}
}
Note that this notification is fired only after the screen shot is taken.
No comments:
Post a Comment