Load various view controllers in the Master-Detail application template

I am developing an application with basic details using Xcode 4.3.3, now in the main view controller I managed to load an additional view controller called "Fav Real"
When this view controller is loaded, it will contain different elements taken from sqlite database in tableViewController .
My problem is here, I need it when I click on any loaded line to load another viewController in detailViewController to load another view controller instead of the first. "I really lost, I tried to make the following diagram, but I do not know how to make my goal ... Any help would be greatly appreciated.enter image description here

, FavReal, - , "DetailsViewController" "", .
FavReal.m, :" nil.

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

 Details * vc4 = [self.storyboard instantiateViewControllerWithIdentifier:@"Details"];
 [self.navigationController pushViewController:vc4 animated:YES];

}

, , ,

+5
1

, - , , , , - detailViewController, , "", , . :

UIStoryboard* storyboard = [UIStoryboard storyboardWithName:@"SecondStoryboard" bundle:nil];
UIViewController* initialHelpView = [storyboard instantiateInitialViewController];

initialHelpView.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentModalViewController:initialHelpView animated:YES];

.
.

0

All Articles