一.使用storyboard自定義UITableViewCell
1.拖動一個UITableView到storyboard并添加約束條件 設(shè)置tableView的delegate和datasource
設(shè)置代理
2.拖動UITableViewCell到UITableView中,之后的操作和使用xib自定義cell差不多
二.使用UITableViewController
1.創(chuàng)建UITableViewController 設(shè)置第一個個啟動界面
創(chuàng)建并設(shè)置為啟動界面
2.創(chuàng)建UITableViewController子類 關(guān)聯(lián)控制器和代碼
創(chuàng)建關(guān)聯(lián)
3.創(chuàng)建UITableCell的子類
創(chuàng)建
4.設(shè)置重復(fù)利用的標(biāo)識符
設(shè)置標(biāo)識符
5.cell布局
布局
6.使用
使用