Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UINavigationBar jumps from Large Title to small one while pushing to UIViewController with embedded UITableView iOS 11

As it is said from the title, when I try to push UIViewController with UITableView in it and show LargeTitle, it shows for the very first moment and then hides to the small one.

It's weird but this bug is reproduced on 4 inch devices only.

enter image description here

This behavior is seems to be an Apple's bug.

Any other workarounds or nuances I missed? Thanks for any suggestions.

Uploaded test project (GitHub)

like image 640
Sander Avatar asked Sep 24 '17 16:09

Sander


1 Answers

Workarounds I found so far

  1. Attach UITableView's top to SafeArea's top, but this approach lose effect of transparent UINavigationBar and LargeTitle collapses very fast on scrolling
  2. Use UITableViewController instead of UIViewController+UITableView, but this approach loses known flexibility. It's not trivial to hide tableView or add subviews.
  3. pushViewController without animation
like image 74
Sander Avatar answered Nov 13 '22 04:11

Sander