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 937005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:24:17+00:00 2026-05-15T21:24:17+00:00

With no developer interaction you can have a view resize itself to support an

  • 0

With no developer interaction you can have a view resize itself to support an orientation, in many cases this is fine, but what if you need to change the layout of your UI objects to better suit the new orientation?

Apples answer is to:

  • Have two separate ViewControllers with xibs that reflect the desired layout.
  • Designate a master ViewController, (recommended portrait).
  • Subscribe to beginGeneratingDeviceOrientationNotifications
  • In the notification event method (master), check the orientation and either push or pop the slave ViewController as a modal.

At face value, if the layout contains a number of UITextFields, changing the orientation clears the fields (from the users point of view) suggesting that a field copy method is also needed in the notification event method. Unless there is an automated provision for this? (or an alternative pattern)

But what if you want to have some nice short-delayed UI frame translation animations?

Alternatively, rather than having two View controllers I have used CGAffineTransforms to animate UI object frame changes (triggered on willRotateToInterfaceOrientation) with the added bonus of looking sexy, but the code doesn’t look very elegant.

Im unaware of any other solutions.

To get to the point: What is the most efficient and fastest, way to change UI object layouts on orientation events that preferably facilitates frame translation animation?

  • 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-15T21:24:18+00:00Added an answer on May 15, 2026 at 9:24 pm

    The transforms are the easiest to integrate with transition animations.

    I usually solve this problem by using a different view/view-controller pair for each orientation. The trick to making this work seamlessly is to have the data already entered constantly updated in the external data model object. Each view controller then automatically populates its view’s UI from the data model. That way you don’t have to worry about moving data between view controllers which can get messy if you have a lot of views.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is my first interaction with this site, I have heard good things and
New developer here,Im using the Custom Image Picker by ray wenderlich. But what I
http://developer.android.com/tools/publishing/app-signing.html I have a keystore that I already have an alias and password for.
http://developer.yahoo.com/yui/button More specifically, I want radio buttons. that can be checked/unchecked.
I don't even want to think about how many man hours have been spent
For my WPF application I have developed a virtual keyboard. It runs fine on
A customer need a document managment system and I'm building information about this. I
I have a project where I need to create a desktop app that acts
I am specifically using WebSphere Integration Developer V7, but I also could be using
In our Organization we have 200 Android O.S mobiles for our customer support people.All

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.