Skip to content

Instantly share code, notes, and snippets.

@andyyhope
Last active May 25, 2016 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyyhope/2d07ea00eb69f0c5652f7796043c9104 to your computer and use it in GitHub Desktop.
Save andyyhope/2d07ea00eb69f0c5652f7796043c9104 to your computer and use it in GitHub Desktop.
static func postNotification(notification: Notification, object: AnyObject? = nil, userInfo: [String : AnyObject]? = nil) {
let name = nameFor(notification)
NSNotificationCenter.defaultCenter()
.postNotificationName(name, object: object, userInfo: userInfo)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment