简体   繁体   English

'NSInvalidArgumentException':无法识别的选择器发送到实例0x8d25aa0'

[英]'NSInvalidArgumentException': unrecognized selector sent to instance 0x8d25aa0'

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' 我正在使用IOS 6的Tableview(主/详细信息)模板,收到以下错误:“ NSInvalidArgumentException”,原因:“-[DetailViewController saveAcctData:]:无法识别的选择器已发送到实例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:(带有冒号),但是您的方法实现没有冒号。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 NSInvalidArgumentException || 无法识别的选择器已发送到实例 - NSInvalidArgumentException || Unrecognized selector sent to instance 'NSInvalidArgumentException'/'-[AppDelegate fieldChanged:]:无法识别的选择器已发送到实例 - 'NSInvalidArgumentException' / '-[AppDelegate fieldChanged:]: unrecognized selector sent to instance CoreData和NSInvalidArgumentException无法识别的选择器发送到实例 - CoreData and NSInvalidArgumentException unrecognized selector sent to instance [__NSCFNumber 长度]:无法识别的选择器发送到实例 0x6d21350 - [__NSCFNumber length]: unrecognized selector sent to instance 0x6d21350 [UIView setText:]:无法识别的选择器已发送到实例0x89625d0 - [UIView setText:]: unrecognized selector sent to instance 0x89625d0 无法识别的选择器已发送到实例0x6b61d10 - unrecognized selector sent to instance 0x6b61d10 异常'NSInvalidArgumentException',原因:'-[AnnotationView setCoordinate:]:无法识别的选择器已发送到实例 - exception 'NSInvalidArgumentException', reason: '-[AnnotationView setCoordinate:]: unrecognized selector sent to instance 'NSInvalidArgumentException'-[UIViewController tableView:numberOfRowsInSection:]-无法识别的选择器已发送到实例 - 'NSInvalidArgumentException' - [UIViewController tableView:numberOfRowsInSection:] - unrecognized selector sent to instance IOS5 - [__ NSCFDictionary nombre]:无法识别的选择器发送到实例0x6da25a0 - IOS5 -[__NSCFDictionary nombre]: unrecognized selector sent to instance 0x6da25a0 NSInvalidArgumentException-无法识别的选择器已发送到实例 - NSInvalidArgumentException - Unrecognised Selector Sent to instance
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM