Absturz der iPhone-App [__NSCFString objectForKey:] Unbekannter Selektor an Instanz gesendet
Ich versuche, in tempArray nur eine gerade Anzahl von Daten hinzuzufügen. LocalBookmarks ist ein Array von Wörterbüchern. Hier ist mein Code:
currentIndex = indexPath.row;
for (NSDictionary *dict in localBookmarks)
{
if (currentIndex % 2 == 0 && currentIndex <= [localBookmarks count])
{
[tempArray addObject:[dict objectForKey:@"firstName"]];
}
currentIndex++;
}
NSLog(@"tempArray %@",tempArray);
cell.textLabel.text = [tempArray objectAtIndex:indexPath.row];
return cell;
Absturz meiner App bei [tempArray addObject: [dict objectForKey: @ "firstName"]]; diese Zeile, Wie kann ich das beheben?