views:

76

answers:

0

How can I get a UIWebView to rotate correctly in the iPad SDK? The only code I have regarding rotation is:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
return YES;
}

And when I look at my view in InterfaceBuilder, the UIWebView seems to stretch and fit nicely when in landscape orientation. However, in practice, it seems that the bottom (or right if in landscape) portion of the screen becomes its OWN UIWebView when rotating. I can have two separate pages open on each section of the screen.

Screenshot

Does anybody have any tips?

Thanks in advance!