0
林继优秀教程Integrate cocos2d and UIKit的cocos2d与UIKit的表层为了
它工作得很好,
但我需要一些精灵这一举动在我的应用程序上一些的tableView的顶部,我曾尝试与物业Z,茯苓为2D,但似乎没有工作,把精灵在桌子上,
tablaMenuBloq = [[[UITableView alloc]initWithFrame:CGRectMake(40, -10, 150, 210) style:UITableViewStylePlain]autorelease];
tablaMenuBloq.transform = CGAffineTransformMakeRotation((90 * M_PI)/180);
tablaMenuWrapper =[CCUIViewWrapper wrapperForUIView:tablaMenuBloq];
[self addChild:tablaMenuWrapper];
//first sprite
TSprite *ez = [TSprite spriteWithFile:@"butonA.png"]; //lets create a TSprite, named EZ, and the file is Easy.png.
[ez SetCanTrack:YES];//The sprite can be tracked.
[self addChild: ez z:2 tag:easySprite]; //lets add a tag to the sprite, in order to identify it later
ez.position = ccp(290,300);//position of the sprite
[TSprite track:ez];//and lets add this sprite to the tracked array.
请注意该表还之后创建的精灵代码,
所以,我怎么能解决这个问题?
非常感谢!