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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:18:38+00:00 2026-05-29T06:18:38+00:00

OK let me explain the scenario. I am developing an app which has a

  • 0

OK let me explain the scenario. I am developing an app which has a background image in the main window. I also have a navigation controller which does not sit at the top of the screen, but instead its 100px down. The navigation controller is translucent so you can see the background through it.

Now here’s the problem. At some point in the app, the user clicks a button, and I have a UITableViewController class which I add to the navigation controller using pushViewController. The problem with this, is that whilst the top of the tableview appears directly below the navigation controller, it has put a white background behind the navigation controller, taking away the translucent effect.

I have tried the following:
– Set the frame property of my tableviewcontroller’s view,
ie.

tableviewcontroller1.view.frame= CGRectMake(0,120,320,300);

(I have played around with the y position but it makes no difference no matter what I do.)

I thought maybe I could create a UIViewController and create a view with a transparent background, and then add the tableviewcontroller as a subview, and in doing so I was hoping that the frame bounds I set in the tableviewcontroller would take effect. I tried the following:

[parentview.view addSubView: tableviewcontroller1]; // runtime error
[parentview.view addSubView: tableviewcontroller1.view]; // runtime error
[parentview.view addSubView: tableviewcontroller.tableView]; // runtime error

I am really struggling to understand why setting the frame property of my tableviewcontroller.view has no effect, I have checked all my super views and none of them have the “resize subviews” property ticked.

I would very much appreciate some help on this, I’m really stuck here, I’ve done a lot of searching but cant find an answer.

Many thanks
Michael

  • 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-29T06:18:38+00:00Added an answer on May 29, 2026 at 6:18 am

    What you call a navigation controller is perhaps a UINavigationBar. The navigation controller controls the various view controllers, the nav bar is an UI interface belonging to the nav controller.

    To solve your problem, just give your table view a transparent background.

    // in NewTableViewController.m, viewDidLoad
    self.tableView.backgroundColor = [UIColor clearColor];
    

    If for some reason you need a view that has some space above and below a table view controller, you have to create a view controller and insert a table view yourself. The standard UITableViewController has the table view set as the controllers’s main view and thus cannot be resized…

    1. Create a UIViewController subclass (not UITableViewController).
    2. Make the controller conform to <UITableViewDelegate, UITableViewDatasource>
    3. Create a @property called tableView.
    4. When initializing, set self as the table view’s delegate and datasource.
    5. Create a transparent view of appropriate size above the tableView. This view as well as the table view are both subviews of the main view of your view controller.
    6. Implement the necessary datasource and delegate methods for the table view by hand.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let me explain my scenario first: I have around 2000 tests to run, which
Can someone explain me DataSet.Copy() vs Dataset.Clone() Also let me know some scenario's where
I got stuck with this scenario. Let me explain as follows. I have a
Let me explain you the scenario I am developing for Windows Phone 7 and
Ok, let me explain the scenario. I have a orders table with a auto
Let me explain my question with an example scenario: I'm creating an app like
let me explain my current situation i have a SharePoint site lets say it
Title might be a bit confusing, so let me explain. I have a website
I need a help. Let me first explain the scenario with a small sample.
Ok, let me explain my scenario more clearly: When a cell is edited, it

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.