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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:39:00+00:00 2026-06-01T05:39:00+00:00

My problem is I can’t show inherited class from UITableViewController with static cells. I

  • 0

My problem is I can’t show inherited class from UITableViewController with static cells. I am using storyboard for easy custom cells setup (I want to get a Settings App like behavior) in UITableViewController. But I need to nest it in another UIViewController which shows custom top bar (like navigation bar panel). So when I load my UITableViewController with this structure:

#import <UIKit/UIKit.h>

@interface MyCoolTableVC : UITableViewController

@end

I get no issues, all custom cells which I set in storyboard builder are shown in proper way in grouped table view. But when I am using subclass from UITableViewController:

#import <UIKit/UIKit.h>
#import "MyCoolTableVCSubclass.h"
@interface MyCoolTableVC : MyCoolTableVCSubclass

@end

I get this result:

enter image description here

which shows wild appearance of tableView, without sections and custom cells.
I load my controller with this code, if it helps:

UIViewController *vcToGo = nil;
UIStoryboard *storyBoard = [[UIStoryboard storyboardWithName:@"MyCoolStoryboard" bundle:nil] init];
vcToGo = [storyBoard instantiateViewControllerWithIdentifier:@"profileTable"];
[self.navigationController pushViewController:vcToGo animated:YES];
  • 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-01T05:39:02+00:00Added an answer on June 1, 2026 at 5:39 am

    To use static cells, the datasource of the table view has to be set to a UITableViewController subclass, and you must not implement the datasource methods yourself.

    The base UITableViewController provides everything to the table view in its own implementation of cellForRowAtIndexPath etc, using what you have put in the storyboard. So if your datasource does not inherit from UITableViewController, it will not be able to populate the table.

    (note – This is what I assume is happening based on my own experiments, the internals of UITableViewController are not available to me)

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

Sidebar

Related Questions

I think that this problem can be sorted using reflection (a technology which I'm
No foreign keys defined in the database. So I've setup associations. problem: can't seem
I have a problem - i can't compile SqlCipher. I'm using this http://groups.google.com/group/sqlcipher/browse_thread/thread/55c6296b56bf4533/c792bbec6df7d4f4?tvc=2#c792bbec6df7d4f4 instructions
I'm using Delphi 2007 and I wonder how the following problem can be solved:
I'm using rails 2.3.10 and ruby 1.9.2 My problem can be put into these
From what I've been seeing around the internet, this problem can't really be solved
My problem can be summed up by making this simple command works : nice
Seems like the slow Tomcat 7 startup problem can be resolved with metadata-complete set
Problem How can I do work in one thread and update a progressbar on
I have a problem and can't solve it alone. My teacher gives me one

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.