我正在为 IOS 6 开发 Tableview (Master/Detail) 模板,我收到以下错误:'NSInvalidArgumentException',原因:'-[DetailViewController saveAcctData:]: unrecognized selector sent to instance 0x8d25aa0'
这是我的代码:这是什么意思?任何帮助,将不胜感激。谢谢你。
- (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];
}