0

我正在尝试重新创建 iPhone 的 tabView,但使用我自己的样式、按钮等。我不想完全重做我的应用程序,所以我只是[window addSubview:theToolbar]; theToolbar.frame = CGRectMake(0, 425, 320, 44);在我的 appDelegate 中像这样在底部添加了一个视图。

但是,当尝试从 navigationController 中的视图执行此操作时theToolbar,它就结束了。有没有办法以某种方式将它呈现在前面?

这是我展示视图的代码:

AppSettingsController *appSettings = [[AppSettingsController alloc] initWithNibName:nil bundle:nil];
appSettings.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:appSettings animated:YES];
[appSettings release];

谢谢。

4

1 回答 1

0

不可能显示视图控制器的部分视图。如果您想使用相同的工具栏,您应该将工具栏保留到您的 appdelegate,并在每个视图控制器中添加工具栏。

或者你应该只使用 uiview 作为视图控制器

于 2011-05-16T23:22:40.703 回答