I think the title is pretty descriptive:
I perform all 3 of these operations on a view, the result is 20 pixels of white space along the left side of the screen (if holding the iPhone is landscapeLeft).
I tried to fix it by performing a CGAffineTransFormTranslate(transform, -20, 0)
That just "slides" the view underneath the whitespace.
This is starting to feel like a bug, anyone else have this issue?
To clarify, I am not rotating any views. I am sensing the orientation of the device:
[[UIDevice currentDevice] orientation]
And if the device (not interface) is in landscape, then:
[navigationController presentModalViewController:NewView animated:NO]
The transform is to rotate my view (created in IB) to landscape, before displaying it.
My Transform code:
CGRect myFrame = CGRectMake(0, 0, 480, 320);
CGAffineTransform transform = [[self.myPeriodicTableViewController view] transform];
transform = CGAffineTransformRotate(transform, degreesToRadians(rotationDirection * 90));
transform = CGAffineTransformTranslate(transform, -20, 0);
[[self.myPeriodicTableViewController view] setFrame: myFrame];
CGPoint center = CGPointMake(myFrame.size.height/2.0, myFrame.size.width/2.0);
[[self.myPeriodicTableViewController view] setTransform: transform];
[[self.myPeriodicTableViewController view] setCenter: center];