陈斌彬的技术博客

Stay foolish,stay hungry

选择表视图行时

#pragma mark - table view delegate

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    NSLog(@"%@",NSStringFromSelector(_cmd));
    //选择表视图行时,显式触发segue
    [self performSegueWithIdentifier:@"ShowSelectedProvince" sender:[self.tableView indexPathForSelectedRow]];

}

Resourece Reference