What is the correct method to handle the scenario where we have to show different views(controlled by different view controllers) on selecting each row of the rootview in a splitview?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In RootViewController you have a table view delegate selector called:
- (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPathSplitview 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