Iphone--(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
I By using this command -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientatio开发者_开发百科n
I can rotate my view automatically ,Is there any way to rotate and ellabarate and fit with screen.
Thanks in advance, (Deepan)
You can use the autoresizing properties of your views to make them resize to fit the screen.
For example, if you want a view to resize horizontally and vertically, you can use:
myView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
To control whether a view will automatically resize its subviews, you use the boolean autoresizesSubviews
property.
To control how a container view will layout its subviews when the container view's size changes, you use the contentMode
property.
For more information, refer to Apple's UIView Class Reference.
精彩评论