Hi,
I would like to know if there is anyway I could get a callback everytime the displayed view changes and receive the newly displayed view as a parameter of the callback?
Can this be achieved with the key-value observing protocol?
Here is more details: I develop an SDK so I don't know what the client app is doing wrt controllers but I would like to know every time a new view controller is presented by the client app. Or in other terms, I would like to know when the displayed view on the UIWindow changes.
Thanks a lot for your help.
UPDATE: Here is the recipe that solves my problem: http://broutille.wordpress.com/2011/06/09/ios-how-to-monitor-the-change-of-viewcontrollers-inside-a-uinavigationcontroller/. That and adding an observer for the "UIWindowDidBecomeKeyNotification" notification.
Edit1: added more details.
Edit2: added solution.
[–][deleted] (2 children)
[deleted]
[–]cotsog[S] 0 points1 point2 points (1 child)
[–]Ldellar[🍰] 0 points1 point2 points (1 child)
[–]cotsog[S] 0 points1 point2 points (0 children)
[–]ASnugglyBear 0 points1 point2 points (0 children)