I created a Master/Detail application with xCode and changed very little about it. In prepareForSegue in the MasterViewController, I added this to try to put some text in a label in the detail view controller
MMDetailViewController *detailVC = [segue destinationViewController]; detailVC.testdetail.text = @"test";
I also added a label to the detailViewController on the storyboard and then did control/drag to the detailViewController to connect them.
@property (strong, nonatomic) IBOutlet UILabel *testdetail;
Therefore, when I set the text in
prepareForSegue, I expected it to show in the label once I ran the code on the simulator. However, it didn't show. Can you explain why?