Objective c 导航控制器和无故事板

Objective c 导航控制器和无故事板,objective-c,uitableview,uinavigationcontroller,xib,Objective C,Uitableview,Uinavigationcontroller,Xib,我正在用Objective C编写一个应用程序。对于这个项目,我不能使用ARC或故事板。它应该有6个视图。首先,导航控制器应保持表视图(它将包含从阵列传入的一些数据)。在顶部的工具栏中,一旦按下该项目,应用程序应移动到第二视图 我知道我需要在我的委托文件中编写代码,但我不太确定需要包括什么。这就是要求 事实上,当我运行我的应用程序时,它并没有显示将表视图作为我的条目视图的导航控制器。在设置中,我找不到复选框来选择它并使其成为条目视图。 有什么建议吗? 致以最诚挚的问候使用UITabBarCont

我正在用Objective C编写一个应用程序。对于这个项目,我不能使用ARC或故事板。它应该有6个视图。首先,导航控制器应保持表视图(它将包含从阵列传入的一些数据)。在顶部的工具栏中,一旦按下该项目,应用程序应移动到第二视图

我知道我需要在我的委托文件中编写代码,但我不太确定需要包括什么。这就是要求

事实上,当我运行我的应用程序时,它并没有显示将表视图作为我的条目视图的导航控制器。在设置中,我找不到复选框来选择它并使其成为条目视图。 有什么建议吗?
致以最诚挚的问候

使用
UITabBarController的最佳方式

首先在
AppDelegate.h
文件中创建
UIViewController
UINavigationController
的所有对象,并使用
AppDelegate.m

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window=[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds ]];

    self.viewCon=[[ViewController alloc] init];
    self.navCon=[[UINavigationController alloc] initWithRootViewController:self.viewCon];
    self.navCon.navigationBar.tintColor=[UIColor blackColor];
    self.viewCon.title=@"First View";

    self.fView=[[FirstViewController alloc] init];
    self.FnavCon=[[UINavigationController alloc] initWithRootViewController:self.fView];
    self.FnavCon.navigationBar.tintColor=[UIColor blackColor];

    self.fView.title=@"Secound View";

    self.sView=[[SecoundViewController alloc] init];
    self.SnavCon=[[UINavigationController alloc] initWithRootViewController:self.sView];
    self.SnavCon.navigationBar.tintColor=[UIColor blackColor];
    self.sView.title=@"Third View";
    .
    .
    // create UIViewController and UINavigationController As you need 
    .
    .
    .
    UIImage *img1=[UIImage imageNamed:@"Australia.gif"];
    self.tbItem1=[[UITabBarItem alloc] initWithTitle:@"First Page" image:img1 tag:1];
    self.viewCon.tabBarItem=self.tbItem1;

    UIImage *img2=[UIImage imageNamed:@"Cameroon.gif"];
    self.tbItem2=[[UITabBarItem alloc] initWithTitle:@"Secound Page" image:img2 tag:2];
    self.fView.tabBarItem=self.tbItem2;

    UIImage *img3=[UIImage imageNamed:@"Canada.png"];
    self.tbItem3=[[UITabBarItem alloc] initWithTitle:@"Third Page" image:img3 tag:3];
    self.sView.tabBarItem=self.tbItem3;

    NSMutableArray *viewArr=[[NSMutableArray alloc] init];
    [viewArr addObject:self.navCon];
    [viewArr addObject:self.FnavCon];
    [viewArr addObject:self.SnavCon];


    self.tbCon=[[UITabBarController alloc] init];
    self.tbCon.viewControllers=viewArr;

    [self.window addSubview:tbCon.view];

    [self.window makeKeyAndVisible];

    return YES;
}

从您的问题中还不清楚您在寻找什么。已经给出了初始要求。您如何知道UITabBarController是最好的使用工具?现在还不太清楚这个问题想做什么。