1
votes

How can we programmatically create a Navigation controller in Detailed view of Split view based iPAd App?

I tried the steps, provided in this link, but could not replace the Detail view controller with Navigation controller in XIB.

1
There is useful link in stack overflow that can help you stackoverflow.com/questions/7627550/… - wod

1 Answers

5
votes

I know this is an old question, but i hate questions that aren't answered.

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];