Last active
May 25, 2016 09:47
-
-
Save andyyhope/2d07ea00eb69f0c5652f7796043c9104 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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