In "see what's load" I am trying to determine the size of the scene so that I properly appraise a subview size Can do I always want to expand it about the length and width of the screen regardless of orientation.
search * anview = [[quest alloc] initWithFrame: CGRectMake (50, 50, self.view.frame .ize.width-100, self.view.frame.size.height-100 )]; Self.aquest = anview;
But it always gives the width of 748 and the height of 1024 when I'm in the scenario when it's the opposite. I know that you can not get the orientation on the simulator but it also happens on the device when I get the orientation:
[[UIDEViews current device] is startingupDepartment of information]; UIDiv Orientation Orientation = [[UIDEWIS current device] Orientation]; NSLog (@ "Device Orientation:% d", orientation);
I get the orientation correctly but this log statement gives 748/1024 regardless of the orientation.
NSLog (@ "size w:% f", self.view.frame.size.width); NSLog (@ "size h:% f", self.view.frame.size.height);
Does anyone know what's going on? Is it putting me in the viewdidLoad method? Will I put it in the front or should the viewer look? Border
border instead of property frame
The scene is always created in portrait mode and then revolves, even if you launch the application in the scenario you UIViewAutoresizingMaskFlexibleWidth | For UIViewAutoresizingFlexibleHyight , parents should be able to keep the subsection by setting their size relative to the portrait size and autorsizing mask, shouldAutorotateToInterfaceOrientation: should be provided. The correct device orientation will keep the distance up and left margin until you add the mask to a different UIViewAutoresizingFlexibleMargin .
Comments
Post a Comment