Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/apache-flex/4.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 Cocos2d先前场景[自我计划]未停止运行!在替换另一个场景时应该如此_Cocos2d Iphone_Scene - Fatal编程技术网

Cocos2d iphone Cocos2d先前场景[自我计划]未停止运行!在替换另一个场景时应该如此

Cocos2d iphone Cocos2d先前场景[自我计划]未停止运行!在替换另一个场景时应该如此,cocos2d-iphone,scene,Cocos2d Iphone,Scene,我正在使用Chaos In Motion在ios中使用cocos2d制作基于coverflow的应用程序,我正在使用 [[ccdirector sharedirector]推送场景:[myscene场景]] 它显示了paricular控件,其中有一个使用[self schedule:]运行的更新方法,然后我弹出场景并返回到先前显示的屏幕,但先前的场景计划仍在运行,我无法按下当前屏幕上的任何按钮。我受够了 我正在使用[[CCDirector sharedDirector]推送场景:[CCTrans

我正在使用Chaos In Motion在ios中使用cocos2d制作基于coverflow的应用程序,我正在使用 [[ccdirector sharedirector]推送场景:[myscene场景]]

它显示了paricular控件,其中有一个使用[self schedule:]运行的更新方法,然后我弹出场景并返回到先前显示的屏幕,但先前的场景计划仍在运行,我无法按下当前屏幕上的任何按钮。我受够了

我正在使用[[CCDirector sharedDirector]推送场景:[CCTransitionFadeBL transitionWithDuration:3场景:[化身选择场景]];为了推送场景,在化身选择类中,我有一个名为

**-(无效)显示覆盖流 { flowCover视图控制器*flowCover; flowCoverView=[[UIView alloc]initWithFrame:[UIScreen mainScreen]边界]]自动释放]

//using a navigation controller to present FlowCover without it rotating to portrait
testViewController = [[UINavigationController alloc] init];

//The navigation controller will try to put a nav bar in the window, so we hide it
[testViewController setNavigationBarHidden:YES animated:NO];

[testViewController setView:flowCoverView];

NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"TestFC" owner:self options:nil];
flowCover = [array objectAtIndex:0];
testViewController.delegate = self;
[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO];
[[[[CCDirector sharedDirector] openGLView] window]addSubview:flowCoverView];
//testViewController.view.backgroundColor = [UIColor redColor];

double delayInSeconds = 0.1;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
    [testViewController presentModalViewController:flowCover animated:YES];
});



[testViewController  setModalPresentationStyle:UIModalPresentationFullScreen];
}**

选择coverflow后,我将移除剩余的 ** -(void)flowCover:(FlowCoverView*)视图选择:(int)图像 {

}**


在弹出之前屏幕中的任何按钮后,我都无法按下

您可以发布更多代码吗?一种可能的情况是,场景被保留在其他地方,并且没有被解除锁定,那么计划外的事情就永远不会发生。我没有保留任何控制任何场景,而不是通过替换场景来弹出场景。我已经尝试过做海军陆战队!!!
[flowCoverView removeFromSuperview];

    [testViewController dismissModalViewControllerAnimated:YES];
    [testViewController release];
    testViewController = nil;
  [[CCDirector sharedDirector] popScene];
[[NSNotificationCenter defaultCenter] postNotificationName:@"avatarchanged" object:self];