[MonoTouch] ViewDidAppear() not called after app entering foreground?
Robert Jordan
robertj at gmx.net
Mon Oct 17 05:15:44 EDT 2011
On 17.10.2011 09:18, jowi wrote:
> In the different (tab)views, i use the ViewDidLoad() for initializing stuff
> and ViewDidAppear() for (re)loading data etc. This all works very nice at
> runtime. But i noticed that if the app is in the background, and i put it
> back to the foreground, the AppDelegate's WillEnterForeground() is called,
> but NOT the active view's ViewDidAppear(). Is this normal behaviour? Because
> i need to refresh some specific view-dependent data when i enter from
> background.
This is by design. You must either broadcast a notification to
your current view or use NSNotificationCenter to monitor
UIApplication.WillEnterForegroundNotification from inside the view.
Robert
More information about the MonoTouch
mailing list