title: How do you get a parse user profile picture in UITableView
body: <p>i want to get a list of users profile pictures in my uitable view, how do i do this, this is what i have so far </p>
  
  <pre><code>PFQuery *query = [PFQuery queryWithClassName:@"UserPhoto"];
  PFUser *user = (PFUser *)[self.users objectAtIndex:[indexPath row]];
  [query whereKey:@"user" equalTo:user];
  
  [query getFirstObjectInBackgroundWithBlock:^(PFObject *object, NSError *error){
  
  PFFile *theImage = [object objectForKey:@"imageFile"];
  NSData *imageData = [theImage getData];
  UIImage *profileImage = [UIImage imageWithData:imageData];
  
  NSLog(@"%@",profileImage);
  
  if (profileImage == nil) {
  } else {
      cell.imageView.image = profileImage;
  }
  
  }];
  </code></pre>
  
  <p>The code below runs but the output says null. </p>
  
  <p>I do this same thing for getting the profile picture for the current user and it get the profile picture, but it wouldn't return the image for other users.</p>
  
  <p>note that <code>self.user</code> already contains pfusers</p>
  
  <p>here is where i get all users searched for:</p>
  
  <pre><code>-(BOOL)textFieldShouldReturn:(UITextField *)textField{
  
      PFQuery *query = [PFUser query];
      [query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
          [query whereKey:@"username" containsString:self.myTextField.text];
          self.users = [query findObjects];
          NSLog(@"Thing is: %@",self.users);
          [self.mytableView reloadData];
      }];
  
      return YES;
  }
  </code></pre>
  
  <p>Kind regards </p>