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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:33:11+00:00 2026-06-17T20:33:11+00:00

I can’t get my app to look nice on the iphone 5 or even

  • 0

I can’t get my app to look nice on the iphone 5 or even reasonably presentable, it’s a mess. I don’t know where to start. The scroll view is in a random place and theres a grey bar at the bottom of the app. I have tried to get it to work by moving things around in the storyboard but then this ruins it for the old screens. I also switched autolayout on but then the app doesn’t work on ios5. Any help would be massively appreciated. Cheers

  • 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-06-17T20:33:12+00:00Added an answer on June 17, 2026 at 8:33 pm

    In general, if you have your springs and struts (or UIAutoresizingMasks) set up correctly, launching for the iPhone 5 shouldn’t be much additional effort. Also, if you are using lines of code such as [someView setFrame:CGRectMake(hardCodedX, hardCodedY, hardCodedWidth, hardCodedHeight)];, you’re just setting yourself up for failure. You’ll need to refactor this code to use positions relative to the screen size of the device (or of the superView). For complicated subview layouts that can’t be accomplished using springs and struts, you can override layoutSubviews and do your complicated setup there.

    As you stated, if you are supporting iOS 5, Auto Layout isn’t an option.

    You can find the springs/struts in your Storyboard. I outlined it in red here:
    enter image description here

    If you mouse over the box with the various I-beams, you can get a simulation of how the selected view will resize (you’ll see the image to the right of the box animate as it grows and shrinks).

    Springs and struts are set for each individual view. These can be set programmatically using autoresizing masks. For the 4 I-beams on either side of the box, a solid line basically means “anchor the view at this position”. For the two perpendicular bars in the middle, a solid line means “the view is flexible in this direction” (either in width or height).

    Springs and struts are all relative to the view’s superview.

    For instance, if you wanted your view to be anchored to the top of its superview, but grow its height as its superview grows (e.g. the main view of a view controller would grow if the screen was taller as in the iPhone 5), you would want the top I-beam to be a solid line (anchor me to the top) and the vertical line inside the box to be solid (let me grow my height along with my superview). When you mouse over the box now, you would see the image to right have its top anchored, but grow and shrink in the vertical direction.

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

Sidebar

Related Questions

Can anyone let me know how can we change the value of kendo combobox
Can I order my users in the database, so I don't have to say
Can I change the field public virtual ClassOne ClassOne { get; set; } to
Can any one tell, how to get the result of LINQ query contains group
Can MOSS integrate and get user profiles from multiple Active Directory and/or LDAP stores?
Can anyone tell me what i am doing wrong? I am trying to get
Can someone please explain how this code is working for me? I don't understand
Can any one help me in sorting this out in sed/awk/perl Input file Start
Can someone access the database files and/or other files of my app stores in
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.

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.