I have made a view controller embedded in a navigation controller. In the view controller, I have inserted a scroll view that contains some buttons and text fields. In the viewDidLoad
method, I have inserted the following code to initialize the scrollView
:
[scroller setScrollEnabled:YES];
[scroller setContentSize:CGSizeMake:(1000, 1000)];
But the view does not scroll. I have tried the same scenario but without embedding the view controller into a navigation controller and it was working. Does anyone know the problem? Thanks.