Is there a way with a UIView (or UIWindow) to override a method that will be called when the View (or Window) is first shown on the screen?
Note: I do not have a UIViewController in this application, and I would prefer to keep it that way if possible.
This would be similar to registering for the Activated event on a WPF Window?
I need to know when a View is actually showing on the screen before an action can be taken.
Also on iOS 4 with multi-tasking is there an override to get a notification for when your are “re-launched” so you can know the difference a first time a View is show and being shown again from multi-task switching?
Okay with MonoTouch C# or Objective-C examples/answers.
The override
public override void ViewDidAppear (bool animated)inUIViewControllerwill show when a view is shown on the screen.With the multitasking there is an override in the App Delegate:
public override void WillEnterForeground (UIApplication application)you could fire off an event (C#) or send off aUINotificationvia iOS Notification Center which the UIViews could subscribe to, telling them that the application has resumed from the background.