iphone - Disabling autorotate for a single UIView -


OK, it seems that it should be relatively simple, but I'm Googling for a better part of an hour , And I do not know what I need.

I have a visual controller in which some different parts: a background view, a header view, and some buttons now, I want to rotate the header and the button properly (they do, when they want IAutorotateToInterface returns YES from ORIENTATION), but will not rotate the background view under any circumstances. Is there any reasonable way to do this?

If you do not want to rotate the background scene, after which the background is changed to correct orientation. You have to turn off autorection for the view. There are no two ways about it.

You have to handle the rotation of the buttons on your own. You can either create a good layout or put it on a scroll view for example and change its size.

Either way, you have to add a supervisor to rotate yourself,

[[NSNotificationCenter defaultCenter] addObserver: Self Selector: @Selector (Dicotate) Name: UIDewis OperationDead Change Notification Object: Zero];

And if you wanted to resize with a good animated transition, if you want.

  - Thumbnail (zero): (nsnification *) Notification {int ori = 1; UIDivis OrientationCorry = [[UIDEWIS CurrentDivision] Orientation]; If ((currOri == UIDeviceOrientationLandscapeLeft) || (currOri == UIDevice Orientation LandscapeRight)) ori = 0; }  

Hopefully, if you like, because of the navigation bars or position bars, the reason for tuike the bar at the bottom of the top bar, there are several ways to fix it.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -