阻碍错误信息的发现,但无法找到错误。谁能帮我?Xcode“发送到实例的无法识别的选择器”
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"ErgebnisseCell";
ErgebnisseCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
if (indexPath.section == 0) {
NSDictionary *aktion = self.wmXMLParser.alleAktionen [indexPath.row];
__block NSString *VP= @"";
[aktion enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) {
if (VP.length) {
VP = [VP stringByAppendingString:@","];
}
VP = [NSString stringWithFormat:@"%@%@ = %@", VP, key, obj];
}];
cell.spielpaarungLabel.text = VP;
后完整的错误信息,请。应该有班级名称 – Avt
或代码行,发生错误。 – Avt
这意味着你的实例没有这样的方法。检查你是否发送消息到错误的实例。例如,当前应该是[A aMethod],但您可以调用[B aMethod]。它有时在使用收集而没有检查时发生。 –