【问题标题】:Storyboard: Segmented Control + Two Table View Controller with Navigation Controller情节提要:分段控制 + 带导航控制器的两个表视图控制器
【发布时间】:2014-05-05 12:12:41
【问题描述】:

如何正确组织这个空间 StoryBoard? 当我打开选项卡 TabBar 时,我需要一个包含数据的表格。但是虽然Segmented Control上面有一个开关,它切换到了table。

同时我需要表服务不同的控制器。表格有自己的导航控制器。

如果我点击表格单元格,Segmented Control 将被移除并保持熟悉的导航控制器。

【问题讨论】:

    标签: ios objective-c storyboard uistoryboardsegue


    【解决方案1】:
    UIViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"myViewController"];
    
    AppDelegate *appDelegate=[[UIApplication sharedApplication] delegate];
    appDelegate.window.rootViewController=vc;
    

    【讨论】:

    • 请注意,我有一个像 TabBar 这样的应用程序。然后设置我的例子和SecondViewController UITableViewController 之间的连接(推,模态自定义)?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-21
    • 2014-04-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多