views:

877

answers:

2

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

A: 

wow you want to much!

+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