UITableView + UINavigationBar + UITabbar in a Windows based application template using the Builder interface?

I need to have a view with UITabBAr at the bottom with some buttons + a navigation controller on each view and a table view inside the view using an interface constructor and an application template with a Windows database. I want a walkthrough to do this

+3
source share
1 answer

It is very simple. Just create your appdelegate using 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 a subclass of UITableView and everything is set up.

, , tabViewControllerArray.

+2

Source: https://habr.com/ru/post/1709290/


All Articles