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/f397afd8bb16143828cc29a41f46031d to your computer and use it in GitHub Desktop.
Save andyyhope/f397afd8bb16143828cc29a41f46031d to your computer and use it in GitHub Desktop.
static func removeObserver(observer: AnyObject, notification: Notification, object: AnyObject? = nil) {
let name = nameFor(notification)
NSNotificationCenter.defaultCenter()
.removeObserver(observer, name: name, object: object)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment