newbie question. Yes, I've looked all over but not found a good explaination of what to do for this particular instance. I'm sure this is very simple but I'm having trouble. If you could spend 5 minutes looking at the code and helping my understanding that would be great.
Ok, I have a custom cell called •cell that I have given the identifier of 'MyCell'. This is filled with detail and works fine. the issue is when I try to pass this to a detail view. I'm struggling to understand the best way to pass this, specifically how to get the text from one part of my custom cell and make this duplicate in the detailView - is the text label meant to be called the same in the custom cell as it is in the detailView or something else? I know that I need to add something to my didSelectRowAtIndexPath, but I'm unsure how to construct this.
My detailViewController is called detailViewController and given the identity detailViewController in the identifier
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
// I've called this •cell but my custom cell is called MyCell in the identifier - I'm not sure if this makes a difference?
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
//then I craete my detailViewController
UIViewController *detailViewController = [[UIViewController alloc] initWithNibName:@"detailViewController" bundle:nil]; // ...
//I think I understand this bit - detailTitle is the name I have given to the text label in the detail view and venueHeader is the name of the corresponding label in the custom cell - I want the detailTitle to = venueHeader
detailViewController.detailTitle = CustomCell.venueHeader.text;
// I have created a segue in storyboards so I don't know if I need this bit of code as well?
[self.navigationController pushViewController:detailViewController animated:YES];
}