这是cocos2D版本过旧导致的项目出错,
+ (id) layerWithColor:(ccColor4B)color
{
//return [[[self alloc] initWithColor:color] autorelease];
return [[(CCColorLayer*)[selfalloc] initWithColor:color]autorelease];
}
这是cocos2D版本过旧导致的项目出错,
+ (id) layerWithColor:(ccColor4B)color
{
//return [[[self alloc] initWithColor:color] autorelease];
return [[(CCColorLayer*)[selfalloc] initWithColor:color]autorelease];
}