I shifted to swift3 a little while ago. Even after converting to swift3, the notification center code below was working fine (no crashes and doing what it was supposed to).
I was experimenting with force touch in some other parts of the code when suddenly the app started crashing (SIGBRT...'unrecognized selector' sent).
NotificationCenter.default.addObserver(self, selector: Selector(("applicationWillEnterBackGround:")), name: Notification.Name.UIApplicationDidEnterBackground, object: nil)
Cleaned the build, ran it again. Not sure what might be causing this ? Still pretty new to Swift, any help is greatly appreciated :)
Thanks, Karthik