Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func tableView(_ tableView: UITableView,
- cellForRowAt indexPath: IndexPath) -> UITableViewCell
- {
- let party = parties[indexPath.row]
- let cell = tableView.dequeueReusableCell(withIdentifier: "PartyCell",
- for: indexPath) as! PartyCell
- cell.nameLabel.text = party.value(forKeyPath: "name") as? String
- cell.sizeLabel.text = party.value(forKeyPath: "size") as? String
- cell.contactLabel.text = party.value(forKeyPath: "contact") as? String
- cell.locationLabel.text = party.value(forKeyPath: "location") as? String
- return cell
- }
- let cell = tableView.dequeueReusableCell(withIdentifier: "PartyCell",
- for: indexPath) as! PartyCell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement