If you have already set your size, find the index of the cell you want to update:
NSIndexPath * indexPathOfCellToResize =
Probably the best way to do this, but something works here:
Create a delegate protocol in your cell
@protocol CellDelegate - (void) imageIsReadyForCell:(id)cell; @end
Delegation Property
@property (strong, nonatomic) id<CellDelegate>delegate;
In the cell, when the image has finished the call:
[self.delegate imageIsReadyForCell:self]
Then in your file the View collection is placed in the interface
@interface SomeViewController : UIViewController <CellDelegate>
And in .m
- (void) imageIsReadyForCell:(id)cell { NSIndexPath * indexOfReadyCell = [yourCollectionView indexPathForCell:cell]; [myCollectionView reloadItemsAtIndexPaths:@[indexPathOfReadyCell]]; }
Logan
source share