Hmmm. Unfortunately indexPathForItem doesn't run on iOS 5.x devices. :(

I ended up switching to
https://github.com/steipete/PSTCollectionViewbecause it is a clone of
the UICollectionView
API backported to iOS 4.3+.


On Mon, Jan 21, 2013 at 6:55 AM, Carson Brown <notifications@github.com>wrote:

> In PSCollectionView.m:
>
> > @@ -826,14 +826,14 @@ - (void)didSelectView:(UITapGestureRecognizer *)gestureRecognizer
> >  		[sectionItems enumerateObjectsUsingBlock:^(PSCollectionViewItemLayoutAttributes *candidate, NSUInteger idx, BOOL *stop) {
> >  			if (candidate.valid && CGRectContainsPoint(candidate.frame, tapPoint)) {
> >  				selectedCell = candidate;
> > -				selectedIndexPath = [NSIndexPath indexPathForItem:idx inSection:[sectionNumber integerValue]];
> > +				selectedIndexPath = [NSIndexPath indexPathForRow:idx inSection:[sectionNumber integerValue]];
>
> indexPathForRow:inSection doesn't quite make sense due to there being
> multiple items horizontally (in one "row"). We use
> indexPathForItem:inSection: to conform similarly to how UICollectionView
> does. The PSViewController in the BroBoard example seems to still use the
> row property, when really it should be using the item property instead.
> See:
> http://developer.apple.com/library/ios/#documentation/uikit/reference/NSIndexPath_UIKitAdditions/Reference/Reference.html
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/carsonb/PSCollectionView/pull/14/files#r2713193>.
>
>