ingredientsmutablearray专题

[NSArray count]: method only defined for abstract class. Define -[IngredientsMutableArray count]

类似这样的问题~ 出错原因: NSArray 和 NSDictionary 都是簇类,一般不建议写一个类去继承他们。 解决: 如果非要继承,一定要准确的重写这些基本的方法: insertObject:atIndex:removeObjectAtIndex:addObject:removeLastObjectreplaceObjectAtIndex:withObject: 更好的选择