Created
September 1, 2014 15:53
-
-
Save ivangodfather/b4a6944bc096c2860492 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (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