You do not use the concept of a string in a collection view. You should use this method from NSIndexPath :
+ (NSIndexPath *)indexPathForItem:(NSInteger)item inSection:(NSInteger)section;
Note that the row property for NSIndexPath declared on UITableView.h , and the item property is declared on UICollectionView.h
source share