Skip to content

Instantly share code, notes, and snippets.

@ramamilaneh
Created January 6, 2017 14:03
Show Gist options
  • Save ramamilaneh/9e4016ef1a2de1d8aa264a13444dfb93 to your computer and use it in GitHub Desktop.
Save ramamilaneh/9e4016ef1a2de1d8aa264a13444dfb93 to your computer and use it in GitHub Desktop.
func addNotificationObservers(){
NotificationCenter.default.addObserver(self, selector: #selector(switchViewController(with:)), name: .closeLoginVC, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(switchViewController(with:)), name: .closeMainVC, object: nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment