im following this ios tutorial: http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/SecondiOSAppTutorial/CustomizingDetailView/CustomizingDetailView.html#//apple_ref/doc/uid/TP40011318-CH5-SW3
and im creating a master scene and a detail scene. they are both done as described in the tutorial.
Right now the problem is that when i enter the detail scene, the layout of detail scene is not loaded. instead, a master scene layout with nothing on it is loaded.
So far from what i can see, the problem has to do with transferring the data from master scene to detail scene.
The tutorial does not include this method:
without it, the app couldnt go from master scene to detail scene. i think the segue method was suppose to transfer the data and make it go to detail scene, but for some reason it doesnt. so this method was edited to
{
BirdSighting *sightingAtIndex = [self.dataController objectInListAtIndex:indexPath.row];
BirdsDetailViewController *bd= [[BirdsDetailViewController alloc] init];
bd.sighting = sightingAtIndex;
[self.navigationController pushViewController:bd animated:YES];
}
and now the app can go from master scene to detail scene, but the detail scene looks like a master scene with nothing on it.
Any help regarding this or the transferring data between the scenes are greatly appreciated. Thank you in advance.
the problem seem to come down to prepareForSegue isnt being called, and just using didselectrowatindexpath isnt transferring the data correctly.
so you can fix it by looking at this answer here: Custom UITableViewCell not calling prepareForSegue
Seems like when user touch a cell, didSelectRowAtIndex is called, but prepareForSegue isnt. So you need to manually call performSegue for prepareForSegue to work? this is my interpretation.