Chris Hardaker
Chris Hardaker

Reputation: 93

iPad orientation misperformance

This has gotten me extremely confused. I have one scroll views on a page nearly full portrait width. Inside this is 6 fixed height scrollviews, almost full width. The idea is that people scroll vertically to view the 6 scroll views and scroll horizontally within each scrollview.

My issue is orientation to landscape. I wish to expand to use the new horizontal space and reduce the vertical, with the 6 interior scrollviews retaining their height, however also taking advantage of the increased width.

If I let the iPad complete the rotation i get (based upon upper left = 0,0), the main view situations around -300, -800 and no change in size (as in still around 768, 1004). Additionally, the toolbar I have located at 0,0 now jumps to the bottom. I have status bar disabled, however every time I change orientation the status bar returns.

I have read every stackoverflow on iPad orientation. I have viewed about 10 tutorials / videos and this all appears so strange. Theoretically, I could modify my display in code with about a dozen line, however the rotation is just so out there that I am unsure where to start.

Any suggestion? OSX Lion, xCode4.4, iPad 3 iOS5 Regards Chris H

Upvotes: 0

Views: 126

Answers (1)

LJ Wilson
LJ Wilson

Reputation: 14427

I assume you have configured how you want all those objects to mutate when the orientation changes in Interface Builder Sizing & Layout inspector right?

In that inspector, you choose how each object in the view will mutate depending on orientation. There are springs and struts that allow you to dictate where (or if) the object will be anchored somewhere or whether or not the object will be allowed to stretch its view. The Apple Docs would give you much more information.

Here is a pic to show the inspector tab you need to use: enter image description here

Upvotes: 1

Related Questions