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

来源:互联网 发布:斯巴达刀座淘宝 编辑:程序博客网 时间:2024/05/29 07:37

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

+ (id) layerWithColor:(ccColor4B)color

{

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

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

}

原创粉丝点击