iphone - How to rotate an Info Button with the view? -
I'm just trying to write a visual based application, which uses only landscape orientation.
Using this code:
application.statusBarOrientation = UIInterfaceOrientationLandscapeRight; Application Start application in landscape orientation
The problem is, if I create a landscape view in interface builder, the scene was made by the I way She did not see ... I have to create a scene in portrait mode and imagine that when it is in portrait mode (hope you understand what I mean?) - I include the rotated images already . So, I've got everything now, but Infobaton is not rotated (other buttons, but others have already rotated the images) ...
Is my fault?
Thank you very much.
is related to
Depending on your view (button) orientation :
UIInterfaceOrientation orientation = [UIDevice currentDevice]. Consideration; CGAffineTransform changes; Switches (Orientation) {Case UIDwise Orientation Portrait: Transforms = Cigfeint Transform Identity; break; Case UIDeviceOrientationPortraitUpsideDown: transform = CGAffineTransformMakeRotation (180 * M_PI / 180); break; Case UIDevice Orantation Landscape Elevator: Transformation = Cagefin Transformmecotation (90 * MOPI / 180); break; Case UIDICE Orientation Landscape Right: Transform = CGFF TransformMacotation (-90.0 * MOG / 180); break; Default: transform = cagefin transformation identi; break; } [[MarieView Layer] SetApien TransSense: Transform];
Comments
Post a Comment