Skip to content

Instantly share code, notes, and snippets.

@ivangodfather
Created September 1, 2014 15:53
Show Gist options
  • Select an option

  • Save ivangodfather/b4a6944bc096c2860492 to your computer and use it in GitHub Desktop.

Select an option

Save ivangodfather/b4a6944bc096c2860492 to your computer and use it in GitHub Desktop.
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
//some code
[message.image getDataInBackgroundWithBlock:^(NSData *data, NSError *error) {
image = [UIImage imageWithData:data];
cell.photoImageView.image = image; //This doesnt get update. but i cant reload this indexPath cause i will create a infinite loop;
self.testImageView.image = image; //This get update.
}];
//other code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment