I have a UITableView which contains five cells. Each cell has a a label and a image. Now using didSelectRowAtIndexPath, when I click on any cell, a new view should appear which contains a label and image from the cell clicked. The code is:
OpenMessageViewController *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"OpenMessageVC"];
[self.navigationController pushViewController:controller animated:YES];
OpenMessageViewController is my new view that would appear on clicking a cell. I have added a label and image in OpenMessageViewController in storyboard. How do I change the label text and image of OpenMessageViewController to the text and image present in the cell clicked. Thank You