我有 UINavigationController 并在其中放置了 UIListView。现在我想在导航栏的左侧添加多个 BarButtons。这怎么可能?我设法通过代码在那里添加了一个按钮,但没有添加多个。
编辑:通过 IB 添加到 UINavigationController 的 NavigationBar 的按钮根本不可见。什么可能导致问题?
我在 .h 文件中创建了 UINavigationController 并在 .m 中使用了它并推送了另一个视图(即 TableView):
navigationController = [[UINavigationController alloc] init];
[window addSubview:[navigationController view]];
tableOfContents *tableOfContentsViewController = [[tableOfContents alloc] init];
[navigationController pushViewController:tableOfContentsViewController animated:NO];
[tableOfContentsViewController release];
编辑2:我解决了第二个问题。所以只剩下第一个问题。多个 BarButtonItems ...