【问题标题】:Making the Navigation controller in Detail view of Split View controller在拆分视图控制器的详细视图中制作导航控制器
【发布时间】:2011-05-13 06:27:02
【问题描述】:

我们如何以编程方式在基于拆分视图的 iPAd 应用程序的详细视图中创建导航控制器?

我尝试了link 中提供的步骤,但无法将详细视图控制器替换为 XIB 中的导航控制器。

【问题讨论】:

标签: ios uinavigationcontroller uisplitviewcontroller ipad


【解决方案1】:

我知道这是一个老问题,但我讨厌没有答案的问题。

UIViewController * masterController = ... allocation/init ...
UIViewController * detailController = ... allocation/init ...
UINavigationController *detailNavController = [[[UINavigationController alloc] initWithRootViewController:detailController ] autorelease];


UISplitViewController *splitViewController = [[UISplitViewController alloc] init];
splitViewController .viewControllers = [NSArray arrayWithObjects:masterController , detailNavController, nil];

【讨论】:

    猜你喜欢
    • 2013-05-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多