UITableView & UIScrollview stop cocos2d animations

后端 未结 2 1343
情书的邮戳
情书的邮戳 2021-01-06 13:34

I have UITableView, which is shown in front of my Layer `[[CCDirector sharedDirector].view addSubview:myTableView] and takes some part of the screen.

Ev

2条回答
  •  误落风尘
    2021-01-06 13:56

    Go into the CCDirector.m OR CCDirectorIOS.m file and find this line:

    [displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
    

    Change it to this:

    [displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSRunLoopCommonModes];
    

提交回复
热议问题