ios - 向导航 Controller 添加工具栏

标签 ios uitableview uinavigationcontroller ios5 toolbar

enter image description here我对 ios 开发完全陌生,我只对为 ios5 开发感兴趣。

我有一个带有一些场景的应用程序,它们主要是表格 View 。我也使用导航 Controller

然而,我需要添加一些在所有场景中始终可见的状态文本和按钮,并认为添加到导航 Controller 的工具栏应该可以解决问题。

所以我认为我应该只需要将 Storyboard 中的工具栏拖到导航 Controller 上,但它不会粘在那里。我可以使用第一响应者和导航 Controller 将它添加到下方的栏中,但这对我没有帮助(小图标)。
我也不能将它添加到我的表格 View 中(但如果我拖出一个普通 View ,我可以将它添加到那里)

我是否必须制作导航 View 使用的自己的自定义导航类,然后以编程方式添加我的工具栏?

最佳答案

最近有同样的问题。在 Storyboard 的 ViewController 的属性中检查 Attributes Inspector。在那里你可以定义一个底栏。
Attributes Inspector

关于ios - 向导航 Controller 添加工具栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8728121/

相关文章:

ios - 第二个 View 上的 TableView 单元格

ios - UITableView 上的前卫滚动 - iOS

uinavigationcontroller - ios7在导航堆栈中返回的新平移手势不会清除tableview选择

ios - UICollectionView contentOffset 在键盘出现时发生变化

ios - 自定义 AVVideoCompositing 类未按预期工作

ios - 为静态 UITableViewCell 子类创建属性

ios - 如何在模态 Viewcontroller 被解散后更新父 Viewcontroller 的 View

ios - 使用 NSUserDefaults 在 Swift 中保存和加载高分

ios - 如果没有 collectionview 项,如何在单元格中显示 UILabel "No result found"?

iphone - 多个重复 View 的导航 Controller 设计