如何更改 UICollectionView zIndex? [英] How to change UICollectionView zIndex?
本文介绍了如何更改 UICollectionView zIndex?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
检查下面的图片.我需要突出显示聚焦的单元格,使其位于collectionView
中的所有单元格之上.
我知道我必须更改焦点单元格的 zIndex
.怎么做?
我需要逻辑.我的代码在 objective-c
中.
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
.
这适用于 tvOS
但 iOS
代码我猜也可以在这里工作.
This is for tvOS
but iOS
code will also work here I guess.
推荐答案
您是否尝试过为 cell.layer.zPosition
设置值?
Have you tried setting value for cell.layer.zPosition
?
这篇关于如何更改 UICollectionView zIndex?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文