【问题标题】:PFUser Not returning objectID value on iOSPFUser 没有在 iOS 上返回 objectID 值
【发布时间】:2015-02-10 14:40:03
【问题描述】:

我正在尝试使用 Parse.com 从 PFUser 获取 objectId 密钥,但它一直返回 null。

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

每次我运行它时,它都会返回为“返回 null”。我可以将用户名放在我键入 objectId 的位置,并会得到结果,但不是 objectId。

【问题讨论】:

    标签: ios parse-platform pfuser


    【解决方案1】:

    试试:

    NSString *theObject = [me objectId];
    

    发件人:

    Getting objectId from parse.com

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多