ios - iOS7 viewController and MPMoviePlayerViewController Rotation -


I try to do many things, but I still can not rotate only 1 visual controller in all my apps. I would like to show (or rotate ) in the scenario with MPMoviePlayerViewController .

The app in the Facebook app is only in portrait but the video can be rotated. After being featured, return the app in portrait mode. I am able to "rat", but after the video player button clicked view return in "Landscape mode".

How can I fix this?

Thank you very much.

    1. Create a new view controller to view the video

    2. Click on the project and then click on the target. Enable all rotation in normal category under deployment information

    3. Now open your root view controller and place the following lines. Whether the orientation of your app

    code:

      - (BOOL) should be aurortate {return TRUE; } - (NSUntengar) Supported interface ornation {if (UI_USER_INTERFACE_IDIOM () == UIUserInterfaceIdiomPhone) {return UIInterfaceOrientationMaskPortrait; } And {return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight; }}  

    4. Now if you use the method of yoga to represent the views of your second view controller, then there is no need to apply methods of offering to other controllers. is not. But if any VC has used the project controller method, then add that orientation to the orientation methods


    Comments