Guest User

Untitled

a guest
Jun 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. import UIKit
  2.  
  3. class PlaceTableCell: UITableViewCell {
  4.  
  5. @IBOutlet weak var titleLabel: UILabel!
  6. @IBOutlet weak var ratingLabel: UILabel!
  7. @IBOutlet weak var addressLabel: UILabel!
  8. @IBOutlet weak var statusLabel: UILabel!
  9.  
  10. override func awakeFromNib() {
  11. super.awakeFromNib()
  12. selectionStyle = .none
  13. }
  14.  
  15. override func setSelected(_ selected: Bool, animated: Bool) {
  16. super.setSelected(selected, animated: animated)
  17.  
  18. // Configure the view for the selected state
  19. }
  20.  
  21. func configureCell(model: PlaceCellDataModel) {
  22. titleLabel.text = model.name
  23. ratingLabel.text = model.rating
  24. addressLabel.text = model.address
  25. statusLabel.text = model.openStatusText
  26. }
  27.  
  28. }
Add Comment
Please, Sign In to add comment