Note : If you use UIImagePickerController or UIPopoverController and these error occurs then these below solution is damn good.
Also these error comes in iOS 6.0 only
Create a new one UIImagePickerController's category and add
@implementation UIImagePickerController(custom)
-(BOOL)shouldAutorotate
{
return NO;
}
@end
That's works for me.