Hi,
In Safari with five tabs open each with Apple.com loaded, after rotating the device, the orientation changes after 1 second. In my test application which has five UIWebViews that have loaded Apple.com, it takes 4 or so seconds... but my test app has no other controls or code????
How can this be? What's the deal here???
Code for the UIWebViews:
Anyone know what's happening and why???
In Safari with five tabs open each with Apple.com loaded, after rotating the device, the orientation changes after 1 second. In my test application which has five UIWebViews that have loaded Apple.com, it takes 4 or so seconds... but my test app has no other controls or code????
How can this be? What's the deal here???
Code for the UIWebViews:
Code:
- (void)viewDidLoad {
[super viewDidLoad];
for (int i = 0; i<5; i++) {
UIWebView *web = [[UIWebView alloc] initWithFrame:CGRectMake(50*i, 0, 320, 480)];
NSURL *url = [NSURL URLWithString:@"http://www.apple.com"];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
web.scalesPageToFit = YES;
web.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin;
[self.view addSubview:web];
[web loadRequest:requestObj];
}
}
Anyone know what's happening and why???