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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to