HOW TO UPDATE A SPECIFIC CELL OF UICOLLECTIONVIEW?

Ankit Singh

Total Post:341

Points:2389
Posted by  Ankit Singh
 508  View(s)
Ratings:
Rate this:
I have created an app on iPhone using UICollectionView. My problem is I want to update a specific cell inside a UICollectionView. I am using [self.collectionView reloadData] method. But this is not the solution because it will reload whole collection view.
Can anyone tell me how can I update specific cell inside the collection view without reloading whole collection view?
  1. Tarun Kumar

    Post:214

    Points:1642
    Re: How to update a specific cell of UICollectionView?

    To update the specific cell of collection view, you can use the method: reloadItemsAtIndexPaths:, it will reload the specific indexPaths in our collection view.

    -(void)reloadItemsAtIndexPaths:(NSArray*)indexPaths

    I hope the above method is helpful for you.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!