Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

How to delete row and subrow #44

Open
RajChanchal opened this issue Jan 4, 2016 · 0 comments
Open

How to delete row and subrow #44

RajChanchal opened this issue Jan 4, 2016 · 0 comments

Comments

@RajChanchal
Copy link

I uncommented the two methods related to row deletion:
-(BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { return YES; }
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {

But how can I differentiate whether it is subRow to delete or not? And what is the way to call the right indexPath on tableView to delete a row?

[tblView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant