SwiftPages icon indicating copy to clipboard operation
SwiftPages copied to clipboard

The notifications for an orientation change not working for iOS 9/ swift 2/ xcode 7

Open feliciaf opened this issue 7 years ago • 0 comments

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.

feliciaf avatar May 02 '17 21:05 feliciaf