views:

577

answers:

1

Hello

I keep trying to ask this question but it never seems to go on!

I have made a very simple web browser app using a webview. Now I need to get the app so that when the IPhone is rotated, the text of the page is rotated as well

How do I do this?

I am very confused by the auto resize dialog, so it is possible I have done something wrong there

Any help would be appreciated!

Paul

A: 

I think you sholud rotate UIWebView widget, not its contents. Contents should rotate as well. To support rotating add following code to your view controller:

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

Rotated widget might look different then expected. Adjust struts and springs in Interface Builder.

Jacek
i have done that, the text stays in portrait what are struts and springs? I really cant understand the autosize box in interface builder
Rupert
http://drp.ly/d2z2x
Jacek