1 Reply
      Latest reply on Jun 5, 2019 3:32 AM by chengsitom
      chengsitom Level 1 Level 1 (0 points)

        first ,i present a new viewcontroller named videoViewController

        then i use three apis to change videoViewController'interfaceOrientation to UIInterfaceOrientationLandscapeRight


        - (BOOL)shouldAutorotate{

            return NO;



        - (UIInterfaceOrientationMask)supportedInterfaceOrientations{

                return UIInterfaceOrientationMaskLandscapeRight;



        - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{

                return UIInterfaceOrientationLandscapeRight;




        the result is videoViewController.view.subview.constraints lost in sometimes, like the pic.

        More often it is normal, but its appearance is irregular


        my english is poor , if you can't understand me , tell me , i will show you more