title: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: NSArrayM objectForKey
body: <p><img src="https://i.stack.imgur.com/bHbvf.png" alt="enter image description here"></p>
  
  <p>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM objectForKey:]: unrecognized selector sent to instance 0x12e654c0.</p>
  
  <p>I am loading data on tableview from Array that has two dictionary objects. Dictionary object contains 2 nsstring object when ViewDidLoad called the code is below</p>
  
  <pre><code>while (sqlite3_step(statement) == SQLITE_ROW) {
      NSString* delID = [NSString stringWithUTF8String:(const char *) sqlite3_column_text(statement, 0)];
      NSString* name =[NSString stringWithUTF8String:(const char *) sqlite3_column_text(statement, 1)]; 
  
  
      NSMutableDictionary *dict=[NSMutableDictionary dictionary];
      [dict setObject:delID forKey:@"delID"];
      [dict setObject:name forKey:@"name"];
      [self.arr addObject:dict];
  </code></pre>
  
  <p>It never crash for first row but on second row indexPath.row==1 it always crash please see the screen shot below. Thanks for help</p>
  
  <p>Here is I am filling self.arr again
      -(void)popoverControllerDidDismissPopover:(UIPopoverController *)popoverController
      {
      if ([datePicker1.CurrentDate length]) {</p>
  
  <pre><code>UIButton *btn=(UIButton*)[self.view viewWithTag:btnTag];
  [btn setTitle:datePicker1.CurrentDate forState:UIControlStateNormal];
  }
  
  if ([self.searchDel.arrSelectDelAdd count ]) 
  {
      [self.arr addObject:self.searchDel.arrSelectDelAdd];
  
  
  
      [self.tblDelivery reloadData];
  
  }
  
  }
  </code></pre>