Why Schduler function is not called?
来源:互联网 发布:臀部脂肪堆积 知乎 编辑:程序博客网 时间:2024/04/30 17:09
The reason it didn't work for me is that I didn't add the object to the scene layer. Apparently if it's not part of a scene, it is automatically set to paused. As for you, this should be just fine, but if you don't want to add it as a child, I decided to use the objective c functions scheduling.
To schedule:
[[CCScheduler sharedScheduler] scheduleSelector:@selector(tick:) forTarget:self interval:0.0 paused:NO];
To unschedule
[[CCScheduler sharedScheduler] unscheduleSelector:@selector(tick:) forTarget:self];
To schedule:
[[CCScheduler sharedScheduler] scheduleSelector:@selector(tick:) forTarget:self interval:0.0 paused:NO];
To unschedule
[[CCScheduler sharedScheduler] unscheduleSelector:@selector(tick:) forTarget:self];
- Why Schduler function is not called?
- Why today is called present
- Which function is called?
- Why is Linux called a monolithic kernel?
- Why Not Specialize Function Templates
- Why RequestContext is not working?
- Why echo is not portable
- Why C++ Is Not “Back”
- Why is NSNotification its observer called multiple times
- $ is not a function
- $ is not a function
- is not a function
- why vfree() must not be called in interrupt context?
- Which function is called when use virtual function.
- Seed() in initializer is not called
- linux C语言之called object ‘maze’ is not a function or function pointer printf("%d\t", maze(i, j))
- Why is .innerText not working in Firefox?
- $(...).niceScroll is not a function; $... is not a function
- spoofetter.sh Version 0.1
- 深刻探讨public class=new class();
- myeclipse 安装svn插件
- 从MiniGUI看嵌入式十年的得失
- arm9 协处理器
- Why Schduler function is not called?
- android 目录结构
- ios开发之ASIHTTPRequest-授权流程图
- sizeWithFont:方法使用明细
- mingw编译linphone-3.5.2
- hdu 2546 饭卡 换了问法的01背包
- About cocos2d color blend: (only for opengl es 1.1)
- 移动报表数据接口模块
- 数据存储结构 mongoDB