As in The iOS6 Apple Has CHanged The Way of managing the Orientation of device.
in iOS6 you should use new method to manage the orientation introduce in iOS6.The reason behind the problem is in your Code WillAnimate might not called whenever the device rotate.
SO you should use below Methods introduced in iOS6 release.
- (BOOL)shouldAutorotate
{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskAll;
}
If you want your whole app to rotate then you should set your Info.plist to support all orientations.In your case you are supporting the whole orientation then you may allow by editing the .Plist file of APp AS I AM DOING IN BELOW SNAPSHOT.
![enter image description here]()
Now if you want a specific view to be changed desired orientation only you will have to do some sort of subclass and override the autorotation methods to return desired orientation only.
here is the Example how to do same..
And For more Information you should take a view of this.
here it is..!!!
EDIT: As you explained clickinng the iAD in landscape mode then suddenly awkward thing happen to the ads screen.
because Apple's test ads on iPhone and iPad are portrait only. Real advertisements probably will support landscape mode.
Here are too many thread related to same problem.So you no need to worry.
here it is..!!!.
another for same..
another important link for the same
I hope Above Solution may help You.!!!!