Compilation errors.
There are bunch of compilation errors with iOS8 SDK.It would be great if you can fix these.
My App is crashing when i try to call these methods....Please fix these issue...Thanks in advance
NotificationCenter.default.addObserver(self, selector: Selector(("deviceOrientationDidChange")), name: NSNotification.Name.UIDeviceOrientationDidChange, object: nil) NotificationCenter.default.addObserver(self, selector: Selector(("keyboardWillShow")), name:NSNotification.Name.UIKeyboardWillShow, object: nil) NotificationCenter.default.addObserver(self, selector: Selector(("keyboardWillHide")), name:NSNotification.Name.UIKeyboardWillHide, object: nil)
// Observe orientation and keyboard changes private func setObservers() { NotificationCenter.default.addObserver(self, selector:#selector(deviceOrientationDidChange(notification:)) , name: UIDevice.orientationDidChangeNotification, object: nil) NotificationCenter.default.addObserver(self, selector:#selector(keyboardWillShow(notification:)), name:UIResponder.keyboardWillShowNotification, object: nil) NotificationCenter.default.addObserver(self, selector:#selector(keyboardWillHide(notification:)), name:UIResponder.keyboardWillHideNotification, object: nil) }