Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!, object: PFObject!) -> PFTableViewCell! {
- let cell = tableView.dequeueReusableCellWithIdentifier(Constants.CellReuseIdentifier, forIndexPath: indexPath) as? BurnFeedTableViewCell ??
- BurnFeedTableViewCell(style: UITableViewCellStyle.Default, reuseIdentifier: Constants.CellReuseIdentifier)
- cell.nameOfBurnLabel?.text = object.objectForKey("name") as? String
- if let owner = object.objectForKey("owner") as? PFUser {
- cell.ownerLabel?.text = owner.username
- } else {
- cell.ownerLabel?.text = "unknown"
- }
- return cell
- }
- override func viewDidLoad() {
- super.viewDidLoad()
- self.tableView.estimatedRowHeight = 100.0
- self.tableView.rowHeight = UITableViewAutomaticDimension
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement