Skip to content

Instantly share code, notes, and snippets.

@ShivaHuang
Last active December 18, 2015 02:59
Show Gist options
  • Select an option

  • Save ShivaHuang/5715354 to your computer and use it in GitHub Desktop.

Select an option

Save ShivaHuang/5715354 to your computer and use it in GitHub Desktop.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if(tableView.editing == YES){
[self performSegueWithIdentifier:@"showEditTitleView" sender:self];
}
else {
[self performSegueWithIdentifier:@"showDetailView" sender:self];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment