前两天使用到每帧都更新动画的scheduleUpdate()方法,但通过cclog,我发现, scheduleUpdate()是执行了.但update()方法并没有被调用。
那是因为在CCLayer中重载了onEnter().去掉onEnter()就可以了。
http://*.com/questions/17162260/seems-scheduleupdate-not-working
I forgot to invoke the CCNode::onEnter in my own onEnter function.Thus,all we need to do is invoke CCNode::onEnter in the ScrollView::onEnter.Hope other friends don't make the stupid mistake as I did.Good luck:D