Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/105.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 如何获得;文件";通过使用指向PFUser的列指针在PFUser中?_Ios_Parse Platform - Fatal编程技术网

Ios 如何获得;文件";通过使用指向PFUser的列指针在PFUser中?

Ios 如何获得;文件";通过使用指向PFUser的列指针在PFUser中?,ios,parse-platform,Ios,Parse Platform,现在,我正在制作消息应用程序。 下面的图片显示的是关于最后一个_消息类。 它包括主栏 -寄件人 -接受者 -图形文件 然后,我可以通过直接将图像设置到graphicFile列中,在上面的图像中显示图像 但这是多余的,因为他们在发送消息时必须更新图形文件。我认为使用指针更好,但我不确定如何使用指向具有用户profileImage的PFUser的指针 在当前代码中还是使用指针更好? 若使用指针更好,如何使用指针 我显示我的代码 - (UITableViewCell *)tableView:(UIT

现在,我正在制作消息应用程序。 下面的图片显示的是关于最后一个_消息类。 它包括主栏
-寄件人
-接受者
-图形文件

然后,我可以通过直接将图像设置到graphicFile列中,在上面的图像中显示图像

但这是多余的,因为他们在发送消息时必须更新图形文件。我认为使用指针更好,但我不确定如何使用指向具有用户profileImage的PFUser的指针

在当前代码中还是使用指针更好? 若使用指针更好,如何使用指针

我显示我的代码

- (UITableViewCell *)tableView:(UITableView *)tableView      cellForRowAtIndexPath:(NSIndexPath *)indexPath object:(PFObject *)object     {
 static NSString *CellIdentifier = @"Cell";
 commentTableViewCell *cell = (commentTableViewCell *)[tableView      dequeueReusableCellWithIdentifier:CellIdentifier];

 if (cell == nil) {
     cell = [[commentTableViewCell alloc] init];
 }

     cell.usernameLabel.text = [object objectForKey:@"receiver"];
     cell.commentLabel.text = [object objectForKey:@"message"];
     cell.leftImage.file = [object objectForKey:@"graphicFile"];
     [cell.leftImage loadInBackground];

     return cell;
 }

很难理解你到底在问什么。您的
图形图像是什么?是用户的个人资料图片还是发送的图片?谢谢您的回复,graphicImage是关于用户的个人资料图片。这是普弗斯的专栏。我想在last_message类中使用它。那么为什么要在
对象中保存配置文件图片(graphicImage)?为什么不将配置文件图片保存在用户对象中并通过用户访问它呢?我可以理解如何像下面的代码那样在PFUser中调用graphicImage。PFQuery*query=[PFUser query];[查询whereKey:@“foo”等于:@“bar”];但我认为当我从上一个消息类的记录中创建一个单元格时,它是多余的。调用PFQuery多次等于单元格的号码是非常困难的。我认为这超过了parse的免费用户限制,大约30个请求/1秒。