I am developing a master detail application using Xcode 4.3.3, now in the master view controller i have managed to load an additional view controller called "Fav Real"
When this view controller loads, it will contain different items taken from an sqlite database into a tableViewController.
My problem is here, i need when i click on any loaded row, to load a different viewController into the detailViewController, to load another view controller instead of the first one.
I am actually lost, i tried to do the following schema but i have no idea how to do my goal...Any help will be highly appreciated.
As it shows, the items will load correctly in the FavReal tableView , but my goal is when i click at any row, the "Details" showing in the right will load instead of the DetailsViewController.
I tried this code in the FavReal.m but i always get : " Application tried to push a nil view controller on target .
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
Details * vc4 = [self.storyboard instantiateViewControllerWithIdentifier:@"Details"];
[self.navigationController pushViewController:vc4 animated:YES];
}
Thank you for your time, if any further details are needed please tell me