开发者

Handling views in SplitView

What is the correct method to handle the scenario where we have to show different views(controlled b开发者_如何学Cy different view controllers) on selecting each row of the rootview in a splitview?


In RootViewController you have a table view delegate selector called:

- (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

Splitview controller is slightly different from the TableView + Nav pattern (it's more like the Tab bar). You must change the SplitViewController's viewControllers property to set the viewController for the selected row. In the DetailViewController you can manage the memory allocated for that selection. More: http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/iPadControllers/iPadControllers.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜