Shrink large title when scrolling (not UITableViewController) iOS 11

前端 未结 12 1752
太阳男子
太阳男子 2020-12-10 02:35

I have got a View Controller embedded in a Navigation Controller with prefers large titles option set to true; inside the View Controller there’s a Scroll View.

I wa

12条回答
  •  不知归路
    2020-12-10 03:16

    I have not achieved this using a UIScrollView but I achieved it with other ViewControllers using a UITableView as first view.

    If the tableView is not the first view, the large title fails to hide automatically. You most likely need to make sure your tableView is the first element in the main view’s subviews array.

    I hope that this solves your problem.

提交回复
热议问题