Yalantis / DisplaySwitcher

Custom transition between two collection view layouts
https://yalantis.com
MIT License
2.33k stars 190 forks source link

didSelectItemAtIndexPath issue #7

Closed Maryom closed 8 years ago

Maryom commented 8 years ago

Hi,

Thanks for your amazing repo.

I have two issues:

  1. I need to implement didSelectItemAtIndexPath so I added it to UserViewController as follow:
func collectionView(collectionView: UICollectionView,
                        didSelectItemAtIndexPath indexPath: NSIndexPath) {
        print("Hi \(indexPath.row)")
    } 

But it doesn't work! Why?

2 . There is a warning: plain style unsupported in a navigation item.

To solve it just change Bar Button Item Style to Bordered as shown in the attached image.

screen shot 2016-08-07 at 7 18 42 pm