Question

In my application i have a UIWebview where I am showing a list of Video Link . Clicking on one of those links, MPMoviePlayer launches itself. But in the full screen mode its not rotating when needed.

How to rotate it now as I have no control for it in webview.

Was it helpful?

Solution

if you are using IOS 6 use - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {} because shouldautorotate is not any more available for ios 6.

OTHER TIPS

post this method in AppDelegate.m file..

    -(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window
    {
         return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;    
    }

For iOS6 you should also make sure you have landscape added in your supported interface orientations key on your info.plist.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top