UICollectionView cellForItemAtIndexPath indexPath row is nil
First time that I'm using UICollectionView. I'm trying to get the "row"
value for each cell - to be used as an identifier/tag for the cells
textfield. When cellForItemAtIndexPath gets called it seems like
[indexPath row]; returns nil. How can I get the cell index (or something
else to be used as an identifier) when row is nil?
Note Using iOS7, if that makes any difference...
- (UICollectionViewCell *)collectionView:(UICollectionView
*)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
// Returns nil
NSLog("Row: %d", indexPath.row);
}
Any ideas/tips?
No comments:
Post a Comment