加载视图后,我将方向更改为横向。在那里,我看到一条蓝色条带,视图向下移动。当我转到其他选项卡并返回时,它工作正常。
谁能帮我这个?
我这样做是为了自动调整视图大小:
-viewDidLoad:
{
self.view.autoresizingMask =( UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleRightMargin);
self.view.autoresizesSubviews;
[super viewDidLoad];
}
-shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
这是一个屏幕截图: