Make Navigation Controller's largeTitleDisplayMode react to specific scrollViews

175 Views Asked by At

I'm trying to implement the new largeTitleDisplayMode feature in my app. I have a top level mainScrollview that that has multiple childTableViews inside of it. You can swipe left/right(basic page control) inside the mainScrollview to view all the childTableViews. Since all my childTableViews are inside the mainScrollview, the navigation bar's largeTitleDisplayMode functionality does not respond to any of the childTableViews scrolling. Is there a way to to tell the navigationController to respond to a specific scrollView subclass(childTableViews in this case)?

1

There are 1 best solutions below

4
On

You can try UIScrollViewDelegate scrollViewDidEndDecelerating and calculate which index is on view, so you can update your title. If I understood what you want to do.