0
我知道这个问题被问了很多次,但我努力工作,找不到错误!发送到实例的无法识别的选择器 - 属性中的错误?
我制作了一个基于导航的应用程序。 为了costumize我在RootViewController的使用这种方法的表视图细胞的appereance:
- (UITableViewCell *)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
Verwaltung Information * selectedFormel = [listOfFormularies objectAtIndex:indexPath.row];
cell.textLabl.text = selectedFormel.nameFormel;
return cell;
}
变量“nameFormel”被声明在VerwaltungInformation作为的NSString与属性和合成。 而是我收到此错误信息:
[FormelViewController nameFormel]: unrecognized selector sent to instance
Terminating app due to uncaught exception 'NSInvalidArgument', reason : [FormelViewControlle nameFormel]: unrecognized selector sent to instance
我需要一些帮助!自从我一直在努力,但我找不到错误......如果有人需要更多的细节来回答,请留下评论。
你是否合成了这个属性? – 2012-02-07 15:35:10
什么是selectedInfo?它会在这里崩溃吗? – Beuj 2012-02-07 15:38:53
是的,我使用syntesize并且xcode也不显示任何错误。 'selectedInfo'是一个错误,我点了一个错误的变量,在我的代码中,我也使用了selectedFormel。 – Daniel05 2012-02-07 16:28:33