Translate

2013年4月29日 星期一

Master Detail Application for iPad UISplitViewController, MultipleDetailViews with Navigation Controller

重要的link 最近在研究
Master Detail Application for iPad
發現ㄚ
有人也想跟我一樣替換掉Detail的ViewController
發現stackoverflow有人回答了
參考link

The split view controller has a property, viewControllers.
The object at index 1 is the detail controller.
You should just create a mutable copy of viewControllers,
replace the object at index 1 with your new controller,
and set that array to be the split view's arrayControllers.

NextController *next = [[NextController alloc] init..... // or however you get your new controller NSMutableArray *mut = [self.splitViewController.viewControllers mutableCopy]; [mut replaceObjectAtIndex:1 withObject:next]; self.splitViewController.viewControllers = mut; 另外參考link

沒有留言:

張貼留言