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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:30:35+00:00 2026-05-26T08:30:35+00:00

I have an app where I have a TTTableView Controller inside a Navigation Controller

  • 0

I have an app where I have a TTTableView Controller inside a Navigation Controller that is Insider a TabBar.

I want it so that if a user selects an item it will push another TTTableView with the items under that category.

The code I have is

-(void)didSelectObject:(id)object atIndexPath:(NSIndexPath *)indexPath {
    if ([object isKindOfClass:[TTTableMoreButton class]]) {
        [super didSelectObject:object atIndexPath:indexPath];
    } else {
        CategoryViewController *viewController = [[CategoryViewController alloc] initWithNibName:@"CategoryViewController" bundle:nil];
        [self.navigationController pushViewController:viewController animated:YES];
        [viewController release];
    }
}

The CategoryViewController is setup as

@interface CategoryViewController : TTTableViewController

and the CategoryViewController.xib file has the datasource & delegate set to the files owner and the view set to the tableview and the tableview class is set to TTTableView.

When I run it I get the following error when selecting a row

2011-10-17 16:18:23.819 Biz Insider[34067:f803] -[CategoryViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x6c93d30
2011-10-17 16:18:23.820 Biz Insider[34067:f803] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CategoryViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x6c93d30'
*** First throw call stack:
(0x1893052 0x157ed0a 0x1894ced 0x17f9f00 0x17f9ce2 0xb4cf2b 0xb4f722 0x9ff7c7 0x9ff2c1 0x9b61e 0xa0228c 0xa06783 0x9bb48 0x9b1301 0x1894e72 0x89192d 0x89b827 0x821fa7 0x823ea6 0x823580 0x18679ce 0x17fe670 0x17ca4f6 0x17c9db4 0x17c9ccb 0x1f88879 0x1f8893e 0x972a9b 0x273d 0x26b5)
terminate called throwing an exceptionCurrent language:  auto; currently objective-c

If I try and push another view (i have one with a webview on it) then it works fine, or if I go into interface builder and link the File Owner’s “tableView” to the TTTableView object it will work fine and push the controller except the “Pull down to refresh” function wont work so I am assuming that the deletage isn’t correct when doing it that way.

Any help would be greatly appreciated.

EDIT:
I have a feeling that it has something to do with the following

-(id<UITableViewDelegate>)createDelegate {
    return [[[TTTableViewDragRefreshDelegate alloc] initWithController:self] autorelease];
}

This sets the delegate to TTTableViewDragRefreshDelegate which implements the numberOfRowsInSection and all that junk. Is there another way to do this?

Cheers,
Dean

  • 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-26T08:30:35+00:00Added an answer on May 26, 2026 at 8:30 am

    Well this is an odd one, but I changed it from

    CategoryViewController *viewController = [[CategoryViewController alloc] initWithNibName:@"CategoryViewController" bundle:nil];
    

    to

    CategoryViewController *viewController = [[CategoryViewController alloc] init];
    

    and it magically works now…dont ask me how or why.

    There must have been something in the NIB that was messing it up, but I dont know how the whole layout is working now with no NIB.

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

Sidebar

Related Questions

I have an app that has a tabBar Controller and a navBar Controller. It
I have an app that has a TableView, NavigationView and TabBar running together. There
I have a TabBar App. I have created a UITableView class called Schedule that
I have a simple iPhone app based on a navigation controller. There are two
So in my app, I have a UITableView , and in the navigation controller
I have a navigation controller based app. My views consist of two tableviews laid
Basically I want to re-style UITableView(Controller). Each cell will have a picture as a
I have a UIViewController inside of a navigation based app. I'd like the view
I am working on an app where i have a view controller that contains
I'm building an app that combines tabbar and navigation bar. In one of tabs,

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.