I am trying to show some screen for just 2 seconds once App becomes active from background or suspended mode..
So trying to use – (void)applicationDidBecomeActive:(UIApplication *)application in App delegate class..
But since I am in App Delegate class, I am struggling to show the screen in two seconds..
- (void)applicationDidBecomeActive:(UIApplication *)application
{
SplashViewController *splashScreen = [[[SplashViewController alloc]
initWithNibName:@"SplashViewController"
bundle:nil]autorelease];
and then what is the best way to use presentModalViewController or addSubview here for 2 seconds..
Display the splash, then in the
viewDidAppearmethod of yourSplashViewController, trigger a timer to dismiss it, either with anNSTimeror using the much more simpler call ofperformSelector:withObject:afterDelay:.