objective c - Rotation Portrait Landscape with 2 XIB -


I have got 2 GUIs and 2 controller 1 is called Landscape Control Controller and the second is called HyigiController.

Now generally I call the HiigiCentroner, and when I rotate my iPhone it detects it and then it shows the Landscape Control Controller: Code:

 < Code> Landscape Control Controller * neu = [[LandsuGuentron Alok] initWithNibName: Zero Bundle: Zero]; [Self current model visual controller: Ni animated: yes]; [Remove from Self Modul Vij Controls permission: Yes];  

The problem is that the animation window then pushes the new window in the window from the window.

In the Landscapeguo controller, I need the following lines:

  - (BOOL) should be metaActettoInterfaceAuthentication (UINPreferenceErroration) Interface Orientation {Return (Interface Orientation ==UINeterferErrorment Portrait); }  

When I want to return to the Hiigius controller, call me:

  [Self buffer modul control controller: * Yes];  

All of these work, but only in the second animation I see the correct "rotation animation". Do you have any suggestions?

Then describe a small problem: 1. From animation to high in the landscape, the landscape is pushed into the window, but in animation high from 2 to the landscape, the rotation looks like a real rotation. .

I want to show 1.animation like animation.

The best plot is related to

" The problem is that the animation is new from across the iPhone to the window. Gave Ndo push. "Try to set modalTransitionStyle properties view controller for one of the following, do whatever you like: Taipingfem enum {UIModalTransitionStyleCoverVertical = 0, UimodalTransitionStyleFlipHorizontal, UimodalTransitionStyleCrossDissolve,} UIModalTransitionStyle;

In addition, if you want to avoid animated rotation, then you can set your reset ... to reject the other tilt method, but then the device physically when notifications The associate set to receive replaces the orientation, and present the controller to see its models, when it is appropriate for orientation. See Apple's "Alternative View" sample code for an example of this.

The notifications reflect the physical orientation of the device, and you can get them to know whether the interface is allowed to change (you can see the position of UIApplications, BarOrientation property, which UI is the guidelines. ).


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -