Skip to content

Instantly share code, notes, and snippets.

@here-devblog-gists
Created January 26, 2017 12:04
Show Gist options
  • Save here-devblog-gists/48c3ad2faed0fa9cfa92b764796d3ec7 to your computer and use it in GitHub Desktop.
Save here-devblog-gists/48c3ad2faed0fa9cfa92b764796d3ec7 to your computer and use it in GitHub Desktop.
override func viewWillDisappear(_ animated: Bool) {
NMAPositioningManager.shared().stopPositioning()
NotificationCenter.default.removeObserver(self, name:
NSNotification.Name.NMAPositioningManagerDidUpdatePosition, object: NMAPositioningManager.shared())
NotificationCenter.default.removeObserver(self, name:
NSNotification.Name.NMAPositioningManagerDidLosePosition, object: NMAPositioningManager.shared())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment