i want a view with UITabBAr at The bottom with some buttons+Navigation controller on each view and a tableview inside the view using interface builder and windows basaed application template. i want a step by step guide to do this
views:
877answers:
2
+1
Q:
UITableView+UINavigationBar+UITabbar in windows based application template using interface Builder?
+1
A:
This is very simple. Just create your appdelegate with this function:
- (void)applicationDidFinishLaunching {
TableSubclass *tvc = [[TableSubclass alloc] init]; //subclass of UITableView you declare
UINavigationController *navBar = [[UINavigationController alloc] initWithRootViewController:tvc];
navBar.tabBarItem.title = @"Foo";
NSArray *tabViewControllerArray = [NSArray arrayWithObjects:navBar, nil];
self.tabBarController.viewControllers = tabViewControllerArray;
self.tabBarController.delegate = self;
[tvc release];
}
Now, just create your UITableView subclass and you are all set.
If you want multiple views, and not just one table, you can just declare more view controllers and add them to the tabViewControllerArray.
Andrew Johnson
2009-09-04 20:45:27