Ограничения теряются, когда я изменяю InterfaceOrientation на UIInterfaceOrientationLandscapeRight - PullRequest
0 голосов
/ 05 июня 2019

сначала я представляю новый viewcontroller с именем videoViewController

затем я использую три API-интерфейса для изменения videoViewController'interfaceOrientation на UIInterfaceOrientationLandscapeRight

- (BOOL)shouldAutorotate{
    return NO;
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations{
        return UIInterfaceOrientationMaskLandscapeRight;
}

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
        return UIInterfaceOrientationLandscapeRight;
}

В результате videoViewController.view.subview.constraints иногда теряются, как на картинке.

https://photos.app.goo.gl/8SZbeLBEyXFZeCcz8

Чаще это нормально, но его внешний вид нерегулярен

мой английский плохой, если ты меня не понимаешь, скажи мне, я покажу тебе больше

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...