id<NSObject>
类型的对象上找不到词典元素的预期方法CountKey声明为:static NSString *CountKey = @"count";
任何帮助将不胜感激。谢谢!
-(NSInteger)countForItem:(id
)item {return [item [CountKey] integerValue]; }这将引发错误“用于读取在id&...类型的对象上找不到的字典元素的预期方法”
return [(NSDictionary*)(item)[CountKey] integerValue];