public override void ViewDidLoad() { base.ViewDidLoad(); // Create all the view controllers to be hosted in the tabs. var vc1 = new UINavigationController(new SessionsViewController()); // Customize how this controller is represented when in a tab. vc1.TabBarItem = new UITabBarItem("Sessions", UIImage.FromBundle("images/tabsession"), 0); var vc2 = new UINavigationController(new SpeakersViewController()); vc2.TabBarItem = new UITabBarItem("Speakers", UIImage.FromBundle("images/tabspeaker"), 1); var vc3 = new AboutViewController(); vc3.TabBarItem = new UITabBarItem("About", UIImage.FromBundle("images/tababout"), 2); // Set up the tab order. ViewControllers = new UIViewController[] { vc1, vc2, vc3 }; // Select the first tab. SelectedIndex = 0; // Here is how you can add a red count badge to a tab's icon. //vc2.TabBarItem.BadgeValue = "4"; //CustomizableViewControllers = new UIViewController[]{ }; }
public override void ViewDidLoad () { base.ViewDidLoad (); // Create all the view controllers to be hosted in the tabs. var vc1 = new UINavigationController (new SessionsViewController ()); // Customize how this controller is represented when in a tab. vc1.TabBarItem = new UITabBarItem ("Sessions", UIImage.FromBundle ("images/tabsession"), 0); var vc2 = new UINavigationController (new SpeakersViewController ()); vc2.TabBarItem = new UITabBarItem ("Speakers", UIImage.FromBundle ("images/tabspeaker"), 1); var vc3 = new AboutViewController (); vc3.TabBarItem = new UITabBarItem ("About", UIImage.FromBundle ("images/tababout"), 2); // Set up the tab order. ViewControllers = new UIViewController[] { vc1, vc2, vc3 }; // Select the first tab. SelectedIndex = 0; // Here is how you can add a red count badge to a tab's icon. //vc2.TabBarItem.BadgeValue = "4"; //CustomizableViewControllers = new UIViewController[]{ }; }