• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Split View / drill down
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Split View / drill down


  • Subject: Split View / drill down
  • From: Gerd Moe-Behrens <email@hidden>
  • Date: Fri, 6 Aug 2010 17:32:18 +0200

Hi,

I would like to create a drill down as done in mail.  I found a nice tutorialhttp://www.iphonesdkarticles.com/2009/03/uitableview-drill-down-table-view.html.
It worked fine for a navigation based template.
I tried to modify it for a split view template.

In this case the I got:
terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] was unable to load a nib named "RootViewController"

- (void)tableView:(UITableView *)TableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
 //Get the dictionary of the selected data source.
         NSDictionary *dictionary = [self.tableDataSource objectAtIndex:indexPath.row];
//Get the children of the present item.
         NSArray *Children = [dictionary objectForKey:@"Children"];
         if([Children count] == 0) {
         detailViewController.detailItem = [dictionary objectForKey:@"Title"];
         }
         else {

                   //Prepare to tableview.
                  RootViewController *rvController = [[RootViewController alloc]initWithNibName:@"RootViewController" bundle:[NSBundle mainBundle]
                  //Increment the Current View
                  rvController.CurrentLevel += 1;
                  //Set the title;
                  rvController.CurrentTitle = [dictionary objectForKey:@"Title"];
                  //Push the new table view on the stack
                  [self.navigationController pushViewController:rvController animated:YES];
         rvController.tableDataSource = Children;
                  [rvController release];
         }
}

How do I have to change the code?

Many thanks in advance for your help.

Best
Gerd

Sent from my iPad_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: NStoolbaritem and a custom view
  • Next by Date: re: Core Data : Multiuser ?
  • Previous by thread: NStoolbaritem and a custom view
  • Next by thread: Proper UTI for accepting files dropped on my table view?
  • Index(es):
    • Date
    • Thread