I have a UIViewController
- WSProfileViewController
. This VC has a headerView
, and then a containerView
that loads one of three tableViewController
as a childViewController
of WSProfileViewController
. I want to be able to scroll the headerView
up whenever the current tableView
scrolls up, as if it was a headerView
of the tableView
itself.
In the main VC, WSProfileViewController
, I made it a UIScrollViewDelegate
and implemented scrollViewDidScroll
, but it's never called. It currently has no connection the the scrollViews
of the child tableViews
.
*Each child tableViewController
has different data models, and are classes used elsewhere, so I want to keep them as is and just load them as children.