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.
請注意該表還之後創建的精靈代碼,
所以,我怎麼能解決這個問題?
非常感謝!