我有一个 Objective-C 项目。在项目中,我想在图像(UIImage)上使用一些 CCAction。所以,我想我需要把所有的 UIImage 都改成 CCSprite。我有一个添加图像以查看项目中所有图像的功能:
UIImage* firstImage = [imageArray objectAtIndex:0];
UIImageView* imageView = [[UIImageView alloc] initWithImage:firstImage];
[targetView addSubview:imageView];
[imageView release];
return imageView;
此时,我不知道如何在 CCSprite 上做 addSubview。据我所知,在 cocos2d 中,只有一个 CCGLView 正在使用。有什么提示吗?谢谢你。