场景A切换到场景B,有切换特效

调用顺序如下:(AAABABABA)

A:构造函数

A:onEnter

A:onEnterTransitionDidFinish

B:构造函数

A:onExitTransitionDidStart

B:onEnter

A:onExit

B:onEnterTransitionDidFinish

A:析构函数

 

场景A切换到场景B,无切换特效

调用顺序如下:(AAABAABBA)

 

A:构造函数

A:onEnter

A:onEnterTransitionDidFinish

B:构造函数

A:onExitTransitionDidStart

A:onExit

B:onEnter

B:onEnterTransitionDidFinish

A:析构函数

 

场景A中pushScene B场景,有切换特效(AAABABAB)

调用顺序如下:

 

A:构造函数

A:onEnter

A:onEnterTransitionDidFinish

B:构造函数

A:onExitTransitionDidStart

B:onEnter

A:onExit

B:onEnterTransitionDidFinish

 

 

场景A中pushScene B场景,无切换特效(AAABAABB)

调用顺序如下:

 

A:构造函数

A:onEnter

A:onEnterTransitionDidFinish

B:构造函数

A:onExitTransitionDidStart

A:onExit

B:onEnter

B:onEnterTransitionDidFinish

 

 

场景B中popScene

调用顺序如下:

B:onExitTransitionDidStart

B:onExit

A:onEnter

A:onEnterTransitionDidFinish

posted on 2018-03-07 23:22  陈孝勇  阅读(300)  评论(0编辑  收藏  举报