Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. func tableView(_ tableView: UITableView,
  2. cellForRowAt indexPath: IndexPath) -> UITableViewCell
  3. {
  4.  
  5. let party = parties[indexPath.row]
  6. let cell = tableView.dequeueReusableCell(withIdentifier: "PartyCell",
  7. for: indexPath) as! PartyCell
  8.  
  9. cell.nameLabel.text = party.value(forKeyPath: "name") as? String
  10. cell.sizeLabel.text = party.value(forKeyPath: "size") as? String
  11. cell.contactLabel.text = party.value(forKeyPath: "contact") as? String
  12. cell.locationLabel.text = party.value(forKeyPath: "location") as? String
  13.  
  14. return cell
  15. }
  16.  
  17. let cell = tableView.dequeueReusableCell(withIdentifier: "PartyCell",
  18. for: indexPath) as! PartyCell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement