Possible Duplicate:
How to make app fully working correctly for autorotation in iOS 6?
having an issue with autorotation in iOS6. I have added this in App Delegate:
- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
{
return (UIInterfaceOrientationMaskAll);
}
And added this in View Controller:
- (BOOL)shouldAutorotate
{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations
{
return (UIInterfaceOrientationMaskPortrait);
}
I still cannot get it to just be portrait, and not landscape! Help is much appreciated.