문제

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