UITabBarController

    UITabBarController leftTabBar=[[UITabBarController alloc]init];

    

    myContacts = [[MyContactsViewController alloc] init];

    ABPeoplePickerNavigationController *peoplePicker = [[[ABPeoplePickerNavigationController alloc] init]autorelease];


    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:myContacts];

    

    RecentsViewController *rcall = [[RecentsViewController alloc] init];

    UINavigationController *rcallNav = [[UINavigationController alloc] initWithRootViewController:rcall];

    

    more=[[More alloc] init];

    UINavigationController *moreNav = [[UINavigationController alloc] initWithRootViewController:more];

    leftTabBar.viewControllers=[NSArray arrayWithObjects:nav,rcallNav,moreNav,nil];


    [leftTabBar setSelectedIndex:0];


你可能感兴趣的:(UITabBarController)