-
Notifications
You must be signed in to change notification settings - Fork 88
Description
The notifications for an orientation change not working. I have tried to comment out:
// Set the notifications for an orientation change & BG mode
let defaultNotificationCenter = NSNotificationCenter.defaultCenter()
defaultNotificationCenter.addObserver(self, selector: #selector(SwiftPages.applicationWillEnterBackground), name: UIApplicationWillResignActiveNotification, object: nil)
defaultNotificationCenter.addObserver(self, selector: #selector(SwiftPages.orientationWillChange), name: UIApplicationWillChangeStatusBarOrientationNotification, object: nil)
defaultNotificationCenter.addObserver(self, selector: #selector(SwiftPages.orientationDidChange), name: UIDeviceOrientationDidChangeNotification, object: nil)
and it is not recognizing SwiftPages.orientationDidChange, SwiftPages.orientationWillChange & SwiftPages.applicationWillEnterBackground.
i have tried several ways but no luck. please i would really appreciate guidance or direction. I can update the code for all users.