Take the 2-minute tour ×  I am having an issue with my
UIWebView. When the view loads it loads in either orientation
fine, fills the whole page perfectly etc.  However say if I load
it in portrait then rotate the device the webview does not fill
all the way across to the right hand side and I cannot for the
life of me figure out why.  This is my view did load method  -
(void)viewDidLoad     [super viewDidLoad];      if
([[UIApplication sharedApplication] statusBarOrientation] ==
UIInterfaceOrientationPortrait){
self.measurementsWebView.frame = CGRectMake(0, 0, 320, 367);
}else if ([[UIApplication sharedApplication]
statusBarOrientation] == UIInterfaceOrientationLandscapeLeft ||
[[UIApplication sharedApplication] statusBarOrientation] ==
UIInterfaceOrientationLandscapeRight){
self.measurementsWebView.frame = CGRectMake(0, 0, 480, 218);
NSString *path = [[NSBundle mainBundle]
pathForResource:@"measurements" ofType:@"png"];
[measurementsWebView loadHTMLString:[NSString stringWith