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.
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.