Question

I want to make landscape and portrait mode iOS app. I've designed one page with 3 text boxes and 7 buttons. Text boxes and button are resizing (change width) according to IOS screen size in landscape mode but scroller is not showing in landscape mode. So, some buttons are not showing in landscape mode. Please go through landscape Image and portrait Image links.

Landscape Image : http://www.2shared.com/photo/nButg4eb/landscape.html

Portrait Image: http://www.2shared.com/photo/1PR86npE/Portrait.html

I am new in IOS so, i am facing this type of problem. I request all experts to don't close my question because I am really facing this problem and i need to do complete it today.

I am waiting for your valuable answer.

Thanks! Shailesh Prajapati

Était-ce utile?

La solution

First of all, by default scroller is not always visible. It is visible when you enter your view but then it disappears. What is more it is not best, from user experience point of view, to display them all the time.

So, to indicate to user that "somewhere at the bottom there is something" you can do this two things:

after your view was loaded in - (void) viewDidLoad you can blink with scrolls by using:

[scrollView flashScrollIndicators];

and also you can place your buttons, near the bottom edge, in such a way that half of button will be visible and half will not. That will be indicator to user "hey! there is something there!" (http://imgur.com/P9qzUVC)

Autres conseils

if this app for ios 6 or later in that case you can use autolayout otherwise it should be manage your code manually. First check is it portrait or landscape and then manage your text field and button manully according to frame.

Read first these two tutorial for autolayout..

  1. http://www.raywenderlich.com/20881/beginning-auto-layout-part-1-of-2

  2. http://www.raywenderlich.com/20897/beginning-auto-layout-part-2-of-2

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top