Using didSelectRowAtIndexPath
I have two viewControllers in my project. The first is a map view with a
button that provides a segue to a tableViewController. I added a new
UITableViewVontroller class file to my project and assigned the
tableViewController to it. The table view has 3 static rows that represent
a layer to add to my map. When the user selects a row, I want the
corresponding layer to be added to the map view and a checkmark added to
the table view cell to show that the layer is ON. The call to add the map
is...
[_mapView addTileSource:[[RMMapBoxSource alloc] initWithMapID:@"MapID"]];
I think this would all go in the TableViewController.m in
- (void)tableView:(UITableView *)tableView
didSelectRowAtIndexPath:(NSIndexPath *)indexPath
but everything I've tried hasn't worked so far. Please help me code this
in. I can supply additional information as needed. Thanks in advance for
your time.
No comments:
Post a Comment