I have a navigation controller…. and tableview like so:
Item A >
Item B >
Item C >
Item D >
Map >
Clicking on a table cell takes you to the details view for Item X of course. The map view shows pinpoints for items A-D. There is a disclosure button on the annotation callout. The disclosure button code does this:
[self.navigationController popViewControllerAnimated:true];
//Now what???
What I would like to do at this point is push the detail view for Item X after popping the map view. What is the proper way to do this?
Not proud of this, but… I did come up with a solution. I set a tag value for the individual annotations based on the index of the array used to set up the tableview.
}
Now in ServicesViewController we can do this:
}