Thursday, September 29, 2022

[FIXED] How to change UICollectionView zIndex?

Issue

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


Solution

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



Answered By - iOSer
Answer Checked By - Candace Johnson (PHPFixing Volunteer)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.