Вопрос

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.

Это было полезно?

Решение

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

Другие советы

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top