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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:07:54+00:00 2026-06-11T15:07:54+00:00

I am adding a TTTableViewController into an existing UIViewController , one strange thing I

  • 0

I am adding a TTTableViewController into an existing UIViewController, one strange thing I found is that the frame properties of the initialized TTTableViewController are wired, e.g. in a iOS layout.

I have:

  1. UIStatusBar
  2. UINavigationController
  3. UIViewController
  4. UITabBar

In order to set the TTTableViewController fill in all the remaining space I need to set the height to 460 instead of 367. (367 = 480-20-44-49)

e.g.

self.tableViewController.view.frame = CGRectMake(0, 0, 320, 460.0f);

instead of

self.tableViewController.view.frame = CGRectMake(0, 0, 320, 367.0f);

Why is it so?

*Edit for clarification: I mean TTTableViewController on the top of TTViewController (using [self.view addSubview:self.tableViewController.view];), and I need to set the self.tableViewController.view.frame = CGRectMake(0, 0, 320, 460.0f); instead of 367

  • 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-11T15:07:55+00:00Added an answer on June 11, 2026 at 3:07 pm

    It depends on when you are setting the frame, I think. I’m pretty sure when you set the frame in viewDidLoad, for example, you’ll be setting it before the status bar and other things are taken into account. There might be other cases like this. If you set it to 320:460, it’ll be resized to take into account the status bar and other stuff afterwards, making it fill in the rest of the screen. If you set it to 320:367 because you’ve already taken into account that stuff, it’ll get resized again and squished (basically scaled down twice), making it only fill part of the screen. If you’re using viewDidLoad you could try sticking it in another method (maybe viewWillAppear?) or just keep using 320:460.

    It’d be nice to know when you set the frame, exactly. Also keep in mind that I could be way off. My mind’s feeling a little fuzzy right now.

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

Sidebar

Related Questions

Adding more than one child to a WPF StatusBar results in poor layout with
Adding the row one by one in the button click.. (i tried but its
After adding Restkit to the Podfile : platform :ios dependency 'Facebook-iOS-SDK', '1.2' dependency 'RestKit',
Adding support for Unicode passwords it an important feature that should not be ignored
Adding the X-Frame-Options DENY to the response header helps protect against malicious framing of
After adding records in the relative file , I am trying to update one
Im adding facebook one-login to my website. Just wanted to get some feedback from
Adding source files more than one directory away (e.g. ../../source.cpp or ../../../somewhere_else/source.cpp, vs. just
When adding new properties to classes, I find myself typing the same things over
When adding an EditItemTemplate of some complexity (mulitple fields in one template), and then

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.