Skip to content

Instantly share code, notes, and snippets.

@axldyb
Created April 27, 2015 09:02
Show Gist options
  • Save axldyb/19302d9d7030f758237f to your computer and use it in GitHub Desktop.
Save axldyb/19302d9d7030f758237f to your computer and use it in GitHub Desktop.
Used to listen for all notifications on iOS.
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