You need to implement editingStyleForRowAtIndexPath and perform your test there.
If there is only one cell that will have this pannable overflow and you know which row, you could define a constant and test for that, like so:
#define kPANNABLE_OVERFLOW_CELL_ROW 7
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
if ( indexPath.row == kPANNABLE_OVERFLOW_CELL_ROW )
return UITableViewCellEditingStyleNone;
}
If you will have multiple, arbitrary cells that need this treatment, you'll need to handle it a bit differently.
Inside
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
// create your table view cell
if ( _Your_table_view_cell_is_the_pannable_overflow_type_ ) {
cell.editingStyle = UITableViewCellEditingStyleNone;
}
}