Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MythicFrost

macrumors 68040
Original poster
Mar 11, 2009
3,944
40
Australia
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:

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???
 
Apple probably only rotate the visible view in real time then rotate the others in the background/on demand as they need to without animation.
 
Apple probably only rotate the visible view in real time then rotate the others in the background/on demand as they need to without animation.
Ah thanks, I see, so they probably are rotating it manually then, too? You can't choose when to rotate them with autoResizingMasks can you?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.