I am working on a app, where I got a tabbar, in the 2nd tabitem, I got a UITableView
, when the user presses the row on that UITableView
it must navigate to another UITableView
(2nd), once on the 2nd UITableView
we can then navigate to detailview.
Can anyone help me out how to sort this out.
Help much appreciated.
- (void)viewDidLoad {
UITabBarController * t = [[UITabBarController alloc] init];
ResourcesViewController * c = [[ResourcesViewController alloc] init];
UINavigationController * n = [[UINavigationController alloc] initWithRootViewController:c];
[c release];
NSArray * tabs = [NSArray arrayWithObject:n];
[n release];
[t setViewControllers:tabs];
[window addSubview:[n view]];
//---initialize the array---
listOfResources = [[NSMutableArray alloc] init];
//---add items---
[listOfResources addObject:@"Speeches"];
[listOfResources addObject:@"Publications"];
[listOfResources addObject:@"Images/Photo Library"];
[super viewDidLoad];
}
This is ViewDidLoad
method in the rootviewController
and I created the next level UITableView
called detailtableviewcontroller
but can't call it from this method.