Guest User

Untitled

a guest
Feb 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
  2. guard let cell = tableView.dequeueReusableCell(withIdentifier: "ReusableTableViewCell") as? ReusableTableViewCell, indexPath.row < users.count else {
  3. return UITableViewCell()
  4. }
  5.  
  6. let user = users[indexPath.row]
  7. let dataProvider = UserReusableCellDataProvider(user: user)
  8. cell.set(with: dataProvider)
  9. return cell
  10. }
Add Comment
Please, Sign In to add comment