I am using
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(detectOrientation) name:@"UIDeviceOrientationDidChangeNotification" object:nil];
to make changes to some views in my appdelegate.
But this gets called in a slightest variation of the accelerometer. Can anyone suggest any workaround, so that it gets only called when the device is completely rotated.
Thanks
Could you write some code to check the device’s width = 480 and height = 320 (this is when the device has been rotated 90 degrees) before posting the notification?
So something like: