SwiftPages
SwiftPages copied to clipboard
The notifications for an orientation change not working for iOS 9/ swift 2/ xcode 7
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.