1

我有 2 页。

A 页:(纵向模式) B 页:(横向模式)

从页面 A --> B,然后返回页面 A。状态栏卡在右侧(尽管手机回到纵向模式。通常它最终会在正确的位置重新绘制自己,但这可能需要几秒钟,这是不可接受的。这两个页面通过情节提要中的模态序列连接,我没有实现任何奇怪的东西......

这是页面 A 中的 shouldRotate 方法。我想我离开了这个标准。

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
        return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
    } else {
        return YES;
    }
}
4

0 回答 0