0
votes

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];
}
1
Search your project for saveAcctData:, remove parameters if there are any and remove the colon. - HAS

1 Answers

3
votes

You must be calling the method from somewhere as saveAcctData: (with a colon), but your method implementation doesn't have a colon.