Sending 'ccColor4B' (aka 'struct _ccColor4B') to parameter of incompatible type 'CIColor *'

这是cocos2D版本过旧导致的项目出错,

+ (id) layerWithColor:(ccColor4B)color

{

//return [[[self alloc] initWithColor:color] autorelease];

    return [[(CCColorLayer*)[selfalloc] initWithColor:color]autorelease];

}

你可能感兴趣的:(struct)