views:

17

answers:

1

Hi there. I have a UITableView with cells.

The table view shows a list of downloaded video files. If a video file is downloaded I want them to be able to delete it by sliding - ie: delete a row in a table deletes the file. The table view then resets to show "select to download video".

However, non-downloaded files obviously cannot be deleted. How can I turn off the "slide to delete" on THESE PARTICULAR cells?

Thanks

+1  A: 

try - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath

and maybe:

– tableView:editingStyleForRowAtIndexPath:

;)

nacho4d
fantastic... worked... :)
Thomas Clayson