Category: tabbar

programmatically create TABBAR 0

programmatically create TABBAR

tabBars = [[UITabBarController alloc] init];NSMutableArray *localViewControllersArray =  [[NSMutableArray alloc] initWithCapacity:4];HomeTabViewController *ptr_homeTab;ptr_homeTab = [[HomeTabViewController alloc]  initWithNibName:@”HomeTabViewController” bundle:nil];UINavigationController *homeNavBar=[[UINavigationController alloc]  initWithRootViewController:ptr_homeTab];homeNavBar.tabBarItem.title=@”Home”;homeNavBar.tabBarItem.image=[UIImage imageNamed:@”home.png”];[ptr_homeTab release];myHospitalviewController=[[MyHospitalViewController alloc]  initWithNibName:@”MyHospitalViewController” bundle:nil];UINavigationController *myHospitalNavBar=[[UINavigationController alloc]  initWithRootViewController:myHospitalviewController];myHospitalNavBar.title=@”My Hospital”;myHospitalNavBar.tabBarItem.image=[UIImage imageNamed:@”myhospital.png”];[myHospitalviewController release];viewController = [[TreatMentiViewController alloc]  initWithNibName:@”TreatMentiViewController”...