0

For my collection view, I am implementing pretty much all my selecting, deselecting function in the didSelectItemAtIndexPath and didDeselectItemAtIndexPath. I came across this following function and I was wonder if there is an example of using the highlighting feature for the collectionViewCell. Most of the SO answers does not really use this "highlight" feature and they ended up pointing me back to didSelectItemAtIndexPath and didDeselectItemAtIndexPath (Not sure why?)

func highLightCell(collectionView: UICollectionView, indexPath: NSIndexPath, highlight: Bool) {
user172902
  • 3,541
  • 9
  • 32
  • 75
  • What do you mean "How to use"? Do you do the difference between highlight & selection of a cell? – Larme Sep 12 '16 at 15:03
  • Yeh, I am curious what this "highlight" feature dose as I could implement most feature from didSelect and didDeselect – user172902 Sep 13 '16 at 01:18
  • Possible duplicate of [What is the difference between Highlighted and Selected UIButton's State?](http://stackoverflow.com/questions/11628563/what-is-the-difference-between-highlighted-and-selected-uibuttons-state) – Larme Sep 13 '16 at 08:37

0 Answers0