i am crating an application.
That contains one main view and 4 subviews.
i add all these 4 views as subview with their respected button actions.
Now i need to support my application to both land scape and portrayed.
when ever i rotate my simulator from portrayed to land scape sub view are not rotated.
it will shown like this. link1,link2
some where i found we need to transform our self when device detect rotation.
i did n’t find how can i,
can any one please help me.
Thank u in advance.
First of all you have to implement
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientationand return YES for all supported orientations.
Then you either implement
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)durationand setup you subviews’ properties accordingly or specify properautoresizingMaskfor the subviews