문제

When I change directly from landscape right to landscape left there is a bug.

I have a web view and image view. In each state I have declared specific width height and position. When I am in portrait mode I have specific coordinates for the views. I also have set them for the landscape modes. When I change quickly from landscape left to landscape right all the proportions gets messed up!

I need to have access to the state when my application is in landscape right mode and directly i rotate to landscape left. i need to access it to do modifications, and if i can't how can i then force my application to pass through the portrait mode before going to the other landscape mode, Ex:
Landscape right -> landscape left will take place as follows Landscape right -> Portrait -> landscape left. Because if i rotate it directly from right to left i will have a bug in my software so i need to fix it. Note that i am using a tab bar controller and i have successfully subclassed it and everything is ok.

도움이 되었습니까?

해결책

The problem here was with my handling of the orientation change, i should have from the beginning used :

 if(UIInterfaceOrientationIsPortrait(self.interfaceOrientation))

This handed me the option to control each state. Hope this helps a future person

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top