最后的样子如下图
1. 创建工程:
file->new->project->ios->application->simple view application
下面填好自己的项目信息,注意要选择user storyboards
2. 点击MainStoryboard.storyboard, 打开storyboard的编辑器。
点击first responder, 这时我们从object library 当时选择table view controller拖到storyboard里面去,如下图
3. 我们新建一个object-c的class文件,其中superclass的为UITableViewController
4. 选择我们在第2步创建的一个tableViewController,按照下图发一下他的属性
class为我们自己建的一个object-c的类
5. 设置tableView的属于,如图
content设置为static cells, style设置为grouped,这个有圆角出现,要好看点
6. 设置tableviewcell,如图
style设置为left detail
先写在这里,好像不好写,后面再记录