Skip to content

Instantly share code, notes, and snippets.

@AlexHedley
Created November 28, 2016 20:43
Segue for Delegate
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([segue.identifier isEqualToString:@"showLocations"]) {
//LocationsTableViewController *ltvc = (LocationsTableViewController *)[segue destinationViewController];
UINavigationController *navController = [segue destinationViewController];
LocationsTableViewController *ltvc = (LocationsTableViewController *)([navController viewControllers][0]);
ltvc.delegate = self;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment