我在顶部有一个导航栏,在底部有一个标签栏。然后我在导航栏上放置了一个信息灯按钮。我的任务是按信息按钮将中间区域切换到另一个视图并保持导航栏和标签栏静止不动。
-(IBAction) infoButtonPressed:(id)sender
{
BMIInfo *infoView = [[BMIInfo alloc] initWithNibName:nil bundle:[NSBundle mainBundle]];
infoView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self.navigationController pushViewController:infoView animated:YES];
[infoView release];
}
使用上面的这段代码,我只像翻译移动一样进行视图切换。我希望有一个翻转动作。我能怎么做?
- (IBAction)infoButtonPressed:(id)sender;
{
BMIInfo *infoView = [[BMIInfo alloc] initWithNibName:nil bundle:nil];
infoView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:infoView animated:YES];
[infoView release];
}
有了这个,我以翻转方式切换屏幕,但它切换了整个屏幕。我希望标签栏保持静止。我也不想要标签栏开关。