---
title: "Sending 'ccColor4B' (aka 'struct_ccColor4B') to parameter of incompatible type"
author: "wayne173"
date: "2013-08-09T11:20:40Z"
tags: []
categories: ["移动开发"]
slug: "sending-cccolor4b-aka-struct-cccolor4b-to-parameter-of-incompatible-type"
draft: false
lastmod: "2013-08-09T11:20:40Z"
id: 1922457
url: "https://wayne173.iteye.com/blog/1922457"
---

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