Sending 'ccColor4B' (aka 'struct_ccColor4B') to parameter of incompatible type 'CIColor *'
在报错的地方作如下改变:
+ (id) layerWithColor:(ccColor4B)color
{
return [[(CCColorLayer*)[self alloc] initWithColor:color] autorelease];
//return [[[self alloc] initWithColor:color] autorelease];
}
编译通过,嘎嘎!!