UIScrollview doesnt resize in NavigationController when rotated
Posted
by Icky
on Stack Overflow
See other posts from Stack Overflow
or by Icky
Published on 2010-06-12T13:06:42Z
Indexed on
2010/06/12
13:13 UTC
Read the original article
Hit count: 728
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.
© Stack Overflow or respective owner