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

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
so i'm basing my views' origins on the center point of the screen... unfortunately, changing orientation of the device doesn't affect the mainScreen's bounds?

Code:
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation duration:(NSTimeInterval)duration
	{
	CGRect fullScreenRect = [[UIScreen mainScreen] bounds];
	NSLog(@"rotated, %f x %f", fullScreenRect.size.width, fullScreenRect.size.height);
	}

the output is always the same: rotated, 320.000000 x 480.000000, even in landscape mode. ideally the output should be as listed for portrait mode, but the width and heigh values should exchange for landscape... shouldn't they?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.