How to create a UITabBarController in code
Tab Bar Controllers are setup with an array of view controllers. We’ll create those first, then we simply give said array to our tab bar controller. In this example, this is a subclass of UITabBarController: – (void)viewDidLoad { [super viewDidLoad]; // let’s create several View Controllers with different colours each ViewController *vc1 = [self createViewcontrollerWithColor:[UIColor […]