I have a ViewController1
which has a ScrollView
. In that Scrollview
, I am adding another ViewController2
. Everything is working fine as expected. I could able to scroll the view. Here in this ViewController2
, I am trying to add subview another view with separate view class initialising frame from ViewController2
. When I add this, everything is visible and working fine but the view doesn't allow the scrollview to scroll.
The hierarchy is like this
UIViewController1(Root) --> UIScrollView
UIScrollView's subview --> UIViewController2
UIViewController2's subview --> UIView(separate class frame sent from UIViewController2)
Please help me on this.