阻礙錯誤信息的發現,但無法找到錯誤。誰能幫我?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]。它有時在使用收集而沒有檢查時發生。 –