ios - 我可以在 Storyboard 中设置分组的 tableView 节号吗?

标签 ios uitableview storyboard uistoryboard

我将一个 tableView 拖到 Storyboard 中的 Controller 。我设置了type为grouped,但是不知道能不能在storyboard中设置tableView的section number。

enter image description here

我无法在静态单元格中看到表格 View 的内容。如果我这样做,它将报告错误。

最佳答案

你不能在 tableView 中这样做,因为它不支持静态单元格。 但是,如果您使用 TableViewController 您可以创建静态单元格,也可以创建所需的部分,也可以添加部分编号。 Table View Controller 提供了比单独的 Table View 更大的灵 active 。

enter image description here

关于ios - 我可以在 Storyboard 中设置分组的 tableView 节号吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43608304/

相关文章:

iphone - Monotouch - [NSConcreteValue 双值] : unrecognized selector sent to instance

ios - UICollectionView 与节标题像 UITableView

ios - 我正在尝试创建多个具有不同类的自定义单元格

ios - 为什么我的 tableview 只按升序显示日期而不显示其余数据

ios - UITableViewController 背景颜色设置为默认(白色),但显示为黑色

ios - 界面生成器 : automatically set aspect ratio for UIImageView when using "Aspect Fit"?

ios - 在顶部添加单元格时使 UITableView 保持滚动位置

ios - firebase_screen_class 是什么意思

ios - 在非弹跳的 UITableView 中滚动后,行选择在第一次点击时不起作用

ios - Xcode 10 Storyboard和 info.plist git diff 未正确显示