Hi Guy's,
I am using splash screen for my application when it starts begining and I made it to sleep for 4 seconds.My need is if user taps on the splash screen before the 4 seconds he should navigate to the next screen.Can any one suggest me with some ideas.
My code I tried was:
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
// Override point for customization after application launch
[self createEditableCopyOfDatabaseIfNeeded];
[self initializeDataStructures];
mainController = [[FavoritesViewController alloc] init] ;
navController = [[UINavigationController alloc] initWithRootViewController:mainController];
navController.navigationBar.barStyle = UIBarStyleBlack;
[window addSubview:navController.view];
splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
splashView.image = [UIImage imageNamed:@"default.png"];
[window addSubview:splashView];
[window bringSubviewToFront:splashView];
sleep(4);
// Do your time consuming setup
[splashView removeFromSuperview];
[splashView release];
[window makeKeyAndVisible];
}
Anyone's help will be much appreciated.
Thank's all, Monish.