UINavigationBar does not overlap to UICollectionView in swift 4

流过昼夜 提交于 2019-12-02 16:04:42

问题


I put Navigation bar inside UICollectionView in swift 4.
When I scroll the collectionView, it does not goes to back layer and it overlaps to Navigation Bar.


 self.collectionview.contentInset = UIEdgeInsetsMake(40, 0, 0, 0)

I also write this code but it does not work. I also unselect the "Under Top Bars" in Extend Edges in Attributes Inspector.
All the ways do not work.
Can anyone help me please?

来源:https://stackoverflow.com/questions/46376475/uinavigationbar-does-not-overlap-to-uicollectionview-in-swift-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!