Nicholas
Nicholas

Reputation: 149

Parse ObjectId Null

To make this short and sweet: I have a tableview with a custom cell, and I want to show the objectId in it. This is the code I have... why will it not show anything or log anything?

UILabel *objectIdLabel = (UILabel*) [cell viewWithTag:102];
    objectIdLabel.text = [object objectForKey:@"objectId"];

Thanks

Upvotes: 0

Views: 416

Answers (1)

SanitLee
SanitLee

Reputation: 1253

Try this:

[object objectId];

objectId is a property of PFObject class so treat it as that. Check this out: https://parse.com/docs/ios/api/Classes/PFObject.html

Upvotes: 1

Related Questions