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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:52:47+00:00 2026-06-15T23:52:47+00:00

The main screen of my app is a static table view with some options.

  • 0

The main screen of my app is a static table view with some options. With the new iPhone 5 I have to deal with an extra space on the bottom of the screen: I would like to increase the height of the cells accordingly to the screen dimension and to scale, consequently, the labels font size inside it. Is there any way to do it using only using autolayout? If not which is the best way?

  • 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-15T23:52:48+00:00Added an answer on June 15, 2026 at 11:52 pm

    I don’t think it’s good practice to stretch a table view’s cells for the iPhone 5 resolution. The reason they gave you more pixels is so users could see more of the screen.

    If you insist on doing this, you can set the row height in your table view delegate method, checking the screen height to see if it 568 points (the iPhone 5 height) using [[UIScreen mainScreen] bounds].size.height:

    // sets the height for a row based on indexPath
    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    
        // check if the iPhone 5 is used by using the screen height
        BOOL isIPhone5Used = ([[UIScreen mainScreen] bounds].size.height == 568.0f);
    
        // set the height to a larger number for iPhone 5 rows
        return (isIPhone5Used ? 50.0f : 44.0f); // this sets a height of 50 for iPhone 5 rows, and 44 for all other iPhones
    
    }
    

    You should customize it depending on the indexPath, if you use different heights for various rows. Or, return one value if all rows are the same height.

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

Sidebar

Related Questions

I have an app using a ListView as a main screen. Each row displays
When my iPhone app starts up, the main screen has a keyboard. Currently the
I have a simple android app to play videos. I have a main screen
I am building an iPad app with the main screen composed of a UIScrollView
I am creating an app that has three tabs on the main screen. Each
In my application I have several activities, the main screen has 4 buttons that
here is my app. how to add table view or grids in the following.
Details: My app has a main activity that has a static layout for header
I am writing an iOS app for a client, the main view is a
I'm developing an app for Blackberry on OS 5. I'm trying to have some

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.