UIScrollview doesnt resize in NavigationController when rotated
- by Icky
Hey,
I have been dealing with this issue for 2 days now, not able to find a solution.
I have a navigationcontroller as a root view controller. This one pushes a UIViewcontroller which in turn has a UIScrollview I created with IB.
Additionally there is the Navigation bar. My problem arises, when I rotate the IPhone to Landscape mode. In
-(void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
I want my scrollview to take up the full width (480 px) which it doesnt. I am able to set the frame of the navigation bar to full width perfectly fine, but not the scrollview.
I have read that this might be because of the autoresizing masks set in the rooviewcontroller but I have tried out a couple of solutions - none worked for me.
Any ideas on how to challenge the problem? Dont know where to start looking.