开发者

Handling views in SplitView

开发者 https://www.devze.com 2023-03-05 10:42 出处:网络
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

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

精彩评论

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