I have this weird behavior with my UICollectionview
where, briefly during the initial load, the navigation bar expands into the view and then disappears.
Any ideas what could be going on here? Happy to share more information; just let me know what is relevant!
As per our discussion in the comments, you are hiding the navigation bar in viewDidAppear
.
self.navigationController?.isNavigationBarHidden = true
You should instead hide the navigation bar before the view appears, in viewWillAppear
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.