0

I am trying to get the objectId key from a PFUser using Parse.com, but it keeps returning null.

PFUser *me = [PFUser currentUser];
NSString *theObject = me[@"objectId"];
NSLog(@"Return %@", theObject);

Every time I run this, it comes back as "Return null". I can put username in where I type objectId, and will get a result, but not for objectId.

4

1 回答 1

2

尝试:

NSString *theObject = [me objectId];

从:

从 parse.com 获取 objectId

于 2015-02-10T14:46:31.000 回答