Search code examples
uicollectionviewios8transparencyuicollectionviewcellios8-today-widget

Nothing happens if press on transparent part of uicollectionviewcell in iOS8 Today Extension


I have widget with collection of icons and these icons are on transparent background. UICollectionViewCell is also transparent. The problem is that if press on transparent part of the cell -

(void)collectionView:didSelectItemAtIndexPath:

is not called. But if change cell's backgroundView to black color with alpha = 0.01 everything works well. I have a feeling that alpha solution is not the best one. Am I doing something wrong or anybody have better solution?

Collection views with alpha = 0.01


Solution

  • You NEED the 0.01 alpha workaround.

    According to Apple's DTS, it is an iOS 8 bug.