Created
April 27, 2015 09:02
-
-
Save axldyb/19302d9d7030f758237f to your computer and use it in GitHub Desktop.
Used to listen for all notifications on iOS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSNotificationCenter.defaultCenter().addObserverForName(nil, object: nil, queue: nil) { (notification) in | |
NSLog("Notification found with:\r\n name: \(notification.name)\r\n object: \(notification.object)\r\n userInfo: \(notification.userInfo)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment