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

  • Home
  • SEARCH
  • 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 6133599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:14:59+00:00 2026-05-23T17:14:59+00:00

how do I keep buttons on a XIB view in the same relative position

  • 0

how do I keep buttons on a XIB view in the same relative position after orientation change?

So I have:

  • The base application is based on the XCode 4 template “Utility Application”, has a MainView & FlipSideView controller
  • On the Main View here I have on the XIB Interface Builder design layout in portrait (a) my button in bottom left, (b) a UILabel in the bottom middle, and (c) on the bottom right is the little “i” button to flick over to the flipsideview
  • I note when I go from portrait to landscape the templates’s “i” button in bottom right still stays on the bottom right, however my buttons (i.e. a & b from above) aren’t keeping their relative position.

So how would I keep these buttons in the bottom left and bottom centre respectively after orientation change? Is this achievable in IB or does it require code somewhere (if so a small code example would be nice)?

  • 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-23T17:15:00+00:00Added an answer on May 23, 2026 at 5:15 pm

    There is a tab in interface builder where you can set resizing options, I had a simular problem last week as I am relatively new to iOS development, when on that tab you can set how the application should respond to changes in the size of the view, in other words when the orientation changes the size of the view also changes and the buttons need to know how to resize. No code needed because interface builder rocks. You can google how to port an iPhone app to iPad they cover some of the resizing stuff, and also have a look at this blog, it has a bunch of handy tutorials on iOS development, there is one on iPhone to iPad porting, which will cover device rotation. http://www.raywenderlich.com/tutorials

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

Sidebar

Related Questions

I have created UISplit view based application. Both, master(root) and detail views are navigation
In my application i have used some custom buttons/icon,i have all images in the
I am writing a Cocoa application that I keep adding buttons, views, and layers
I'm developing a navigation-base application with 11 buttons on the main page. If I
I have a list view with 2 buttons on each row. I am using
I have four buttons. I want that selected button keep highlighted till other button
I have a about screen that has some buttons, but I keep getting NullPointerException
I have an application that has two buttons, and I want to detect when
I am planning to keep a common event handler for 2 buttons, say ButtonA
Well, just to keep it simple: I have a webform. On it a button

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.