新建一个TableViewController
2018-01-08 本文已影响19人
友田香菜
image.png
- 删掉系统的 ViewController 和 SB 中的 View Controller Scene
- 新建一个 TableView Controller Scene并将 SB 中的小箭头指向他
-
新建一个 TableViewController 的子类文件
image.png -
将新建的 TableViewController 的 Class 设置为刚才新建的子类
image.png -
设置 cell 的ID
-
在子类文件里编辑
image.png
image.png