TransitionWithInvalidScene help
in my main scene i push a sub scene, when back was press i pop the sub scene.
this thing works fine but occasionally it will show Terminating app due to uncaught exception 'TransitionWithInvalidScene', reason: 'Incoming scene must be different from the outgoing scene'
my push scene code
[[Director sharedDirector] pushScene:subScene];
my pop scene code
[[Director sharedDirector] replaceScene:[FadeTransition transitionWithDuration:0.1f scene:[[Director sharedDirector] MainScene]]];
anyone have any idea whats wrong ?
|