-
I have simple Master-Detail Application: Menu with 3 Tabel Ciew Cells and if I click it I see DetailView with clicked cell’s description (“Button 1”, “Button 2” or “Button 3”) on the center.
-
I want to replace this text to imageView with different image: If I click first cell, I see first image, second cell – second image etc.
My DetailViewController.m:
- (void)configureView
{
if(self.detailItem)
{
self.detailDescriptionLabel.text = [self.detailItem description];
}
}
- How to check cell’s id and set necessary image?
EDITED:
Okay, well you need to implement didSelectRowAtIndexPath in your table view controller in that case.
Something like:
Further info here:
https://stackoverflow.com/tags/didselectrowatindexpath/info