I am working on an Tableview (Master/Detail) template for IOS 6, I am getting the following error: 'NSInvalidArgumentException', reason: '-[DetailViewController saveAcctData:]: unrecognized selector sent to instance 0x8d25aa0'
here is my code: what does this mean? Any help would be appreciated. thank you.
- (IBAction)saveAcctData {
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];
}
saveAcctData:
, remove parameters if there are any and remove the colon. - HAS