Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kalariyaamit

macrumors newbie
Original poster
Sep 18, 2008
8
0
Ahmedabad, Gujrat - India
Hello All,

I've categorized item list on category section. and I've implement commitEditingStyle: for swipe to delete.

my Problem is when item not in any category at that time i display "No Data" on cell. i want to disabled swipe to delete for this cell.

When we add UITableViewDelegate Method
- (void)tableView:(UITableView *)tv commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath;

It's handle the automatically swipe to delete button and pass
"editingStyle == UITableViewCellEditingStyleDelete"

Please Guide me how to disable / enable for some cell.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.