In my working application (iOS 7.0.1), UIDeviceOrientationDidChangeNotification
is called.
Now when i run this application in iOS 8.0 UIDeviceOrientationDidChangeNotification
is not getting called.
Tried a lot but no luck.
EDIT-1:
I have use below code to add observer for orientation change. Works perfect in iOS 7. No luck for iOS 8.
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientationDidChange:) name:UIDeviceOrientationDidChangeNotification object:nil];
In my case, after lot of searches I found that I'd made a silly mistake, that my device potrait orientation lock is on.
Please confirm the device orientation lock off in the settings.
This may help someone.