I have an app that work only in Portrait Mode, but there is a singleView that can display video, so i want that view work also in the landscape mode, but in iOS 6 I can’t figure out how I can do it, now I have this:
In AppDelegate.m i have:
self.window.rootViewController = myTabBar;
then in the Summary of the project:

and i found that in iOS 6 to detect the view rotation i have to do this:
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}
// Tell the system It should autorotate
- (BOOL) shouldAutorotate {
return YES;
}
so i insert the code above only in my UIViewController that I want use also in landscape, but don’t work, anyone knows how i can do it? i just want the autorotate when show video.
Firstly, your target settings should look like this:

In UITabBarController:
Inside your ViewController:
a) if you dont want to rotate:
b) if you want to rotate to landscape:
Edit:
Other solution is to implement this method inside AppDelegate: