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?
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?
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?