iphone - trouble with rotating view (and resizing elements within) in ipad application -


I have a nightmare with rotation on the iPad. I searched the whole place for some tutorials, but in reality I I do not want anything for this. (Maybe the right thing is not being discovered?!)

I have a portrait view by default that is an image and there is a button inside the view. When I roam, I know that it can work out of the scenario. I then try to set the frame size of UIVV to fit well on the screen.

If I allow it to autorise, then it spreads and fills the screen, I do not want it but the problem is, when I change the shape, the button is also shaped, but the image ratio is equal to Not in

My question is: What is the best way to change the size of the scene, I want to reduce the UIV by saying 60% and it changes everything with 60% in the same scene. Once I see that working at this time is to create two thoughts ... but this is twice the work and maintenance!

I have tried to roam the autosizing arrows in the interface builder, but more things are screwed up again!

I have completely lost here !! Thanks for any info

You have a problem that the view has been automatically changed to the screen ratio In Portrait Orientation, the screen size on the iPad is 1024x768. The roots are rotated even after the rotation of the landscape and the content of your screen is skewed or expanded at 768x1024.

What do you have to do

- Override (zero) Animation to Interface Orientation: (UINFFS Orientation) Interface Orientation Period: (NSTEEInterval) Duration

which is the message of the rotation of the view UIViewController This message is called within the rotation animation block. The frame-size of your subviews (buttons) is just what you best fit for them. I once had a problem while roaming the Open GL scene. While moving in the scene, the content of the scene was extracted as it is not possible to change any OpenGL matrix within the animation block, so I found that to create a wager to see the only solution and to set the original in front of the screen border (in- X direction). To maintain the viewport in the center of the screen, you must override the message to reset the scenario above the top (in-direction) threshold of the screen. In this way, keeping your ratio in view, whatever solution is best for you, this message should be overridden.


Comments