swift (xcode 8):有没有办法将静态 table 和固定在屏幕底部而不是 table 的工具栏结合起来?
swift (xcode 8): is there a way to combine a static table and a toolbar which sticks at bottom of the screen instead of the table?
我是 swift 的新手,因此这是一个非常基本的问题,还没有实际代码。
到目前为止我尝试了什么:
将工具栏嵌入 UITableViewController => 工具栏与静态 table
将 UITableView 嵌入 UIViewController => 无法添加静态 table,但工具栏显示在显示屏底部
有什么方法可以创建一个带有单独工具栏的静态 table 吗?
非常感谢!
尝试使用 UINavigationController
:
- 拖一个
UINavigationController
到故事板
- 根据需要配置附件
UITableViewController
。
- 单击导航控制器,然后在“属性”选项卡下的“栏可见性”旁边,选中“显示工具栏”。
- 将您的工具栏按钮拖到 table 视图控制器中
- 没有第5步
我是 swift 的新手,因此这是一个非常基本的问题,还没有实际代码。
到目前为止我尝试了什么:
将工具栏嵌入 UITableViewController => 工具栏与静态 table
将 UITableView 嵌入 UIViewController => 无法添加静态 table,但工具栏显示在显示屏底部
有什么方法可以创建一个带有单独工具栏的静态 table 吗?
非常感谢!
尝试使用 UINavigationController
:
- 拖一个
UINavigationController
到故事板 - 根据需要配置附件
UITableViewController
。 - 单击导航控制器,然后在“属性”选项卡下的“栏可见性”旁边,选中“显示工具栏”。
- 将您的工具栏按钮拖到 table 视图控制器中
- 没有第5步