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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:34:14+00:00 2026-05-26T16:34:14+00:00

the main tableview will have rows that is added/created from the user and that

  • 0

the main tableview will have rows that is added/created from the user and that row will open their own tableview which also have their own add/create own row. My main question is how to make sure each row thats added in the main tableview opens their own tableview (as blank until added from user).

This link i’ve seen is the closest How can I move to another view controller when the user clicks on a row? but not exactly what Im looking for. Most of the samples/tutor is all ususally populated or already have an array in their tableview. I wanted to make mines both completely nothing in it but added only by the users and main tableview each row opens its own tableview.

I already have two tableview one is main and other is sub to each row. I was able to insert row in main table view but it opens the same tableview as the other rows in the main tableview and would like to know how to make sure each row in main tableview opens their own blank tableview.

  • 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-26T16:34:15+00:00Added an answer on May 26, 2026 at 4:34 pm

    Usually your view controller controls the tableView. I guess you are trying to fit in there multiple table views and logic for each one. Instead, just create controllers for each table.

    First create your main view controller using a UIViewController template (don’t use a TableViewController). Use a XIB and add there a TableView element, OR create a UITableView instance using code.

    Now create a class conforming to the delegate and datasource, protocols. This doesn’t need to be a view controller. Example:

    // MiniTVC.h

    @interface MiniTVC : NSObject <UITableViewDelegate, UITableViewDataSource>
    @property (nonatomic, retain) IBOutlet UITableView *tableView;
    @property (nonatomic, retain) NSArray *array;
    -(id) initWithTableView:(UITableView*)tableView array:(NSArray*)array;
    @end
    

    and implement the delegate and datasource methods as usual. You need at least the following:

    • tableView:heightForRowAtIndexPath:
    • numberOfSectionsInTableView:
    • tableView:numberOfRowsInSection:
    • tableView:cellForRowAtIndexPath:

    Then back to your main view controller, you create (or hook from the interface designer using IBOutlets) a tableView and set its delegate and datasource to your MiniTVC class, eg:

    // sample table created by code 
    CGRect frame = CGRectMake(50,50,100,100);
    UITableView *tableView = [[UITableView alloc] initWithFrame:frame]
    [self.view addSubView:tableView];
    
    // set the datasource/delegate
    MiniTVC *miniTVC = [[MiniTVC alloc] initWithTableView:self.tableView array:someArray];
    tableView.dataSource = self.miniTVC;
    tableView.delegate = self.miniTVC;
    

    You can repeat this process creating another UITableView + MiniTVC from inside a custom UITableViewCell. Or you could make the UITableViewCell conform to the table delegate/datasource and implement there the methods.

    Btw, creating tableviews inside tableviews is a bit unusual. Since they are both UIViewScroll subclasses, it could lead to unexpected behaviour, tho I haven’t tried myself.

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

Sidebar

Related Questions

So I have a Titanium.UI.tableview in my main window in my tab group which
I am using iPhone SDK 3.1.3. I have a UITableViewController which gets data from
I have a UITableViewController , in which I added a UISearchBar as the tableHeaderView
in main view a have an navigationController on click on a row a call
Greetings, Problem: I have a main view, that already is associated with a xib
I have a viewcontroller with a nib - which has a tableview, searchbar and
I am trying to make a tableView that will allow me to delete and
I have created an app which is approved by apple and currently buyable in
My application's main window shows a SplitViewController. On the left is a TableView that
Main problem: how do i group elements by their Date, only if continuous and

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.