title: UITableView: how to disable dragging of items to a specific row?
body: <p>I have a UITableView with draggable rows and I can add/remove items. The datasource is a NSMutableArray. </p>
  
  <p>Now, if I move the row with "Add new functionality" the app crashes because the dataSource is smaller since such row has not been added yet.</p>
  
  <p>So I've modified this code:</p>
  
  <pre><code>- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
          if (indexPath.row &gt;= [dataList count]) return NO;
          return YES;
      }
  </code></pre>
  
  <p>And now I can't move it anymore. However I can still move the other rows after such row and consequently the code crashes.</p>
  
  <p>How can I solve this ? Is there a way to disable the dragging <strong>"to"</strong> specific rows and not only from ?</p>
  
  <p>thanks</p>