I have a UITableView that is populated with games that a user is currently playing. I have a Pointer column in the Game table called Turn that points to a PFUser in the User table. Instead of setting the cell text to the objectID of the Turn value, I'd like to instead set it to the player's first name, which is stored in the User table.
The problem is that when I println the Turn pointer object, it only contains the objectID and I can't pull the first_name. Here's my code:
let object = gameResults[indexPath.row]
let user = object["turn"] as! PFUser
let userString = "\(object.first_name)"
cell.textLabel?.text = userString
return cell
The cell text just reads "nil". How do I get the user data from the User table that relates to the Turn pointer column?