*didExitVisibleState* getting called twice when pushing a view controller.
I was trying to do some stuff in didExitVisibleState but I noticed something weird when I try to push/present a new VC over an existing ViewController.
When I present a new ViewController the didExitVisibleState of the nodes is called correctly (i.e. only once), but when I push a ViewController the didExitVisibleState of the nodes is called twice. Is this expected?
This is reproducible in ASDKgram also. Attaching the zip of ASDK gram with modified code. ASDKgram.zip
How to see this happening in ASDKgram example attached:
Launch the ASDKgram app. Click on any photo and see the logs. didExitVisibleState will be called twice for visible nodes when we try to push a new ViewController but works fine if we try to present any ViewController.
Changes done in ASDK code:
Whenever a user clicks on any photo I am sending a notification to PhotoFeedNodeController.m and it pushes a new VC over it.
[Refer line 127-135 in PhotoFeedNodeController.m]
Hi, thanks for reporting and including a sample project. However, I can't run your project as it includes local settings (path to Texture pod for example). It seems that you were running Texture 2.3. Could you please check again with the latest version (2.5) and if the problem still occurs, update the sample project to use this version? Thanks!
I also encountered this problem with Texture 3.0.0
After push a view controller, didExitVisibleState - didEnterVisibleState - didExitVisibleState call 3 method, repeat 2 didExitVisibleState. Why the last two method been called?
By the way, present a view controller not produce this issue.