当我将模拟器从纵向旋转到横向时,标题没有旋转。我想使用 UIInterfaceOrientation 旋转标题和视图旋转。
问问题
268 次
1 回答
1
@renuga 我认为您需要在视图控制器中实现此方法。
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
if(toInterfaceOrientation == UIInterfaceOrientationLandscapeRight)
return YES;
if(toInterfaceOrientation == UIInterfaceOrientationPortrait)
return YES;
return NO;
}
前往 IB 并点击如下所示的箭头。
在那里你需要调整标签栏的位置
于 2011-02-15T07:08:19.170 回答