Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4053778
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:29:25+00:00 2026-05-20T14:29:25+00:00

I have a view in my app that has three segmentedButtonControllers and I designed

  • 0

I have a view in my app that has three segmentedButtonControllers and I designed it with portrait mode. When I rotate the screen the whole UI is…just not right.

enter image description here
enter image description here

My question is, should I design for both portrait and landscape mode separately? If so how I do that?

ps. Actually I don’t need rotation support for iPhone’s app but I’m planning to make same app for iPad where every view has to be rotatable.thanks.


Edit:
just found good example
Easiest way to support multiple orientations? How do I load a custom NIB when the application is in Landscape?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:29:26+00:00Added an answer on May 20, 2026 at 2:29 pm

    I strongly recommend you look up the UIViewController class in docs and read it all (assuming you haven’t already). The key methods you need include willRotateToInterfaceOrientation:duration:, described as follows:

    willRotateToInterfaceOrientation:duration:
    Sent to the view controller just before the user interface begins rotating.

    - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration

    Parameters toInterfaceOrientation The
    new orientation for the user
    interface. The possible values are
    described in UIInterfaceOrientation.
    duration The duration of the pending
    rotation, measured in seconds.
    Discussion Subclasses may override
    this method to perform additional
    actions immediately prior to the
    rotation. For example, you might use
    this method to disable view
    interactions, stop media playback, or
    temporarily turn off expensive drawing
    or live updates. You might also use it
    to swap the current view for one that
    reflects the new interface
    orientation. When this method is
    called, the interfaceOrientation
    property still contains the view’s
    original orientation.

    This method is called regardless of
    whether your code performs one-step or
    two-step rotations.

    Availability Available in iOS 2.0 and
    later.

    It sounds like you should also include:

     - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
    {
    return NO;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple Mac Cocoa app that just has a Web View
I have a universal iOS app with a custom view that has three buttons,
I have an iPhone app that has several different view controllers. A login screen
I have an app that has a centre view with two views off to
I have an iPhone app that shows a simple view (View 1) that has
In my app I have a view that is a form that has quite
I have a little app up that has both CCLayer view and UIView. That
I have an app that I just got setup with a split view controller
I have an app that has a UINavigationController that pushes a UITabBarController into view.
My app has three tabs, A, B, C that have three distinct activities. Tab

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.