iphone - Device orientation - change in legal way (iOS 4.0+) -


My app has a navigation bar, where yes returns to the first screen orientation, the other is used by a user For orientation, select 1 screen. After returning from 1 screen to 1 screen, if the user had the device in the picture in hand but the interface was in the scenario, then 1 screen has been set on the landscape.

  must be (BOOL), the cutting-edge Tutorial interface (UIInterfaceOrientation) interface orientation   

after changing the device orientation Is called.

I want to see what the device orientation is atom and sets the interface orientation for this one. Tried:

  // First method: UIViewController * rotateTheScreen = [[UIViewController alloc] init]; [Self current model viewer: rotate animated screen; No]; [Self-Removed Modal Vij Controller Permission: No]; [Revolving screen release]; // Second way: UIInterfaceOrientation Interface Orientation = self.interfaceOrientation; // Third Method: UINPerface Orientation Orientation = [[UIDwise Current Division] Orientation]; For the first time working strange, except for coming back from the interface orientation - landscape and device orientation = scenario (here's a bug, it rotates for the scenario) the second check interface, such as the name tells, and although my The problem works for the third, as far as I have heard that he is private and Apple rejects the application using this.   

itemprop = "text">

Take a look at this: Basically, app approved by app is applicable to orientation of a device There is no way to do it.

In a short time, the method exists but UIDevice class. [[UIDIS current device] SetOrritation: UINPfaceArmentation Landscape Right Animated: Yes];

This is a compiler warning that you can get rid of a class with @interface UIDevice (MyAwesomeMethodsThatAppleWillNeverAllowMeToUse) - (zero) setOrientation: . (UIInterfaceOrientation) Animation Animated: (BOOL) Animated; - (zero) setOrientation: (UIInterfaceOrientation) orientation; Apart from this, some people say that you can call these methods indirectly around the static code analysis of Apple using performSelector . , As you can read in the comments. / P>

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

memcached - Django cache performance -

java : convert string value to int -