Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
运行操作导致异常-(cocos2d iphone)_Iphone_Ios_Cocos2d Iphone - Fatal编程技术网

运行操作导致异常-(cocos2d iphone)

运行操作导致异常-(cocos2d iphone),iphone,ios,cocos2d-iphone,Iphone,Ios,Cocos2d Iphone,当我把 [_nextProjectile runAction:[CCSequence actions: [CCRotateTo actionWithDuration:rotateDuration angle:cocosAngle], [CCCallFunc actionWithTarget:nil selector:nil], n

当我把

[_nextProjectile runAction:[CCSequence actions:
                            [CCRotateTo actionWithDuration:rotateDuration angle:cocosAngle],
                            [CCCallFunc actionWithTarget:nil selector:nil],
                            nil]];
xcode在execute方法中引发异常

pragma标记CCCallFuncN @结束

没有runAction,它可以正常工作。。 有人能帮忙吗

删除以下行:

[CCCallFunc actionWithTarget:nil selector:nil],
或者像这样做:

[_nextProjectile runAction:[CCSequence actions:
                            [CCRotateTo actionWithDuration:rotateDuration angle:cocosAngle],
                            [CCCallFunc actionWithTarget:self selector:@selector(execute)],
                            nil]];


-(void) execute
{

}

是的,这个callfunc是荒谬的,试图在不存在的对象上调用未知的选择器删除[CCCallFunc actionWithTarget:nil selector:nil]可以解决问题,但我无法放置[\u NextProject runAction:[CCSequence actions:[CCRotateTo actionWithDuration:Rotateduation angle:CoCoCoCosAngle],[CCCallFunc actionWithTarget:self-selector:@selector(execute)],nil]]-(void)execute{},因为execute方法不是用户定义的方法。hmmm…将execute更改为VDExecute:P@Guru kuch bhi haan!!:P
[_nextProjectile runAction:[CCSequence actions:
                            [CCRotateTo actionWithDuration:rotateDuration angle:cocosAngle],
                            [CCCallFunc actionWithTarget:self selector:@selector(execute)],
                            nil]];


-(void) execute
{

}