Slide 16
Slide 16 text
DataSource
class DataSource: NSObject,
UITableViewDataSource {
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let item = items[indexPath.row]
let cell = tableView.dequeueReusableCellWithIdentifier(item.reuseID, forIndexPath: indexPath)
return configure(cell: cell, item: item)
}
...
}
@hankbao 16