在我的工作应用程序 (iOS 7.0.1) 中,会调用 UIDeviceOrientationDidChangeNotification
。
现在在 iOS 8.0 中运行此应用程序时,UIDeviceOrientationDidChangeNotification
不会被调用。
已经尝试了很多次,但没有成功。
编辑-1:
我使用下面的代码添加了方向更改的观察器。在 iOS 7 中完美运行,但在 iOS 8 上无效。
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientationDidChange:) name:UIDeviceOrientationDidChangeNotification object:nil];