简体   繁体   中英

NavigationBar large title not collapse when I have custom image/view under tableView iOS 13

I have an issue with collapsing navigation bar with largeTitles enabled. Basically if there is nothing under the table view, everything is working fine. Once I am adding a default image under the table view, scroll is working on table view, but large navigation bar is stuck in large position.

Any idea for this? 在此处输入图像描述

So, after a long search and a lot of tries, finally I figure out in a different way:

tblSettings.backgroundView = UIImageView(image: UIImage(named: "yourImageName"))

Setting backgroundView to UITableView it will allow navigation bar to animate properly to large and normal titles.

Hope this will someone!

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM