title: NSInvalidArgumentException reason : unrecognized selector sent to instance
body: <p>I wanted to contribute something back, since everyone here has been so responsive. I was getting the above error on an action "button". It was driving me crazy. You see I have a master/detail template and I added an extra detail view to my project. I had a button on the second detail view, but not on the first. I took all of the code out of the button action and still received the error, so I added the same button to the first detail view ... and what do you know it worked. </p>
  
  <pre><code>-(IBAction) addData_btn: (sender){
  
      NSMutableArray *array = [[NSMutableArray alloc] init];
  
      [array addObject:AcctName.text];
      [array addObject:AcctNum.text];
      [array addObject:DayDue.text];
      [array addObject:paymnt.text];
      [array addObject:remBalance.text];
  
      NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask,YES);
  
      NSString *documentPath = [paths objectAtIndex:0];
  
      NSString *plistPath = [documentPath stringByAppendingPathComponent:@"Accounts.plist"];
  
      [array writeToFile:plistPath atomically: true];
  }
  </code></pre>
  
  <p>I added same button to first detail view, without any code ... it worked. </p>