Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change UICollectionView zIndex?

Check the image below. I need to highlight the focused cell such that it is above all the cells in collectionView.
I know I have to change the zIndex of the focused cell. How to do that?
I need the logic. My code is in objective-c.

This is for tvOS but iOS code will also work here I guess.

enter image description here

like image 632
abhimuralidharan Avatar asked Oct 29 '25 09:10

abhimuralidharan


1 Answers

Have you tried setting value for cell.layer.zPosition?

like image 176
iOSer Avatar answered Oct 31 '25 00:10

iOSer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!