나는 작동하고 있던 오래된 코드를 컴파일하려고합니다.ios5와 Cocos2d 문제
이Cannot Convert 'ccCoor4b' to 'ci' color in argument passing.
이 사람이 나를 도울 수 :
PlayView *layer = [[[PlayView alloc] initWithColor:ccc4(180, 180, 200, 255)] autorelease];
이 오류를 받고 있어요?
나는 작동하고 있던 오래된 코드를 컴파일하려고합니다.ios5와 Cocos2d 문제
이Cannot Convert 'ccCoor4b' to 'ci' color in argument passing.
이 사람이 나를 도울 수 :
PlayView *layer = [[[PlayView alloc] initWithColor:ccc4(180, 180, 200, 255)] autorelease];
이 오류를 받고 있어요?
이렇게하면됩니다.
PlayView *layer = [[[PlayView alloc] initWithColor:(ccColor4B){180, 180, 200, 255}] autorelease];
또한이 방법을 시도 할 수
ccColor4B c;
c.r=180,c.g=180,c.b=200,c.a=255;
//then use 'c' as ccColor4B object
정확히 동일한 오류가 발생했습니다. – user965010
변화에 코드 :
return [[(CCLayerColor*)[self alloc] initWithColor:color] autorelease];
PlayView는 CCLayerColor입니까? 이 코드는 작동하지 않아야한다. – Ultrakorne
'PlayView :: initWithColor :'와'ccc4 (...)'선언을 여기 게시 할 수 있겠는가? – brigadir