如何强制在景观中加载子视图



我读过其他线程,但没有一个能给出我想要的答案。

如何在景观中进行子视图加载?

我试过

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

但出于某种奇怪的原因,当它第一次运行时,即使ipad是纵向的,它也会返回横向?

我已经研究了在没有运气的情况下,你可以用不同的方法来为赛格做准备

任何帮助都会受到极大的赞赏。

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}

最新更新