Sending 'ccColor4B' (aka 'struct_ccColor4B') to parameter of incompatible type
今天遇到了如下的一个错误, Sending 'ccColor4B' (aka 'struct_ccColor4B') to parameter of incompatible type CiColor 网上搜寻解决方案如下,就是要强制设置下类型。 按如下改变:
- (id) layerWithColor:(ccColor4B)color { return initWithColor:color] autorelease]; //return initWithColor:color] autorelease]; }