Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1111201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:30:39+00:00 2026-05-17T02:30:39+00:00

I am using splash screen for my application when it starts begining and I

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:30:40+00:00Added an answer on May 17, 2026 at 2:30 am

    Well, you haven’t shown us any code or told us what your real problem is, but in pseudo-code I would do something like this:

    - (void) start {
      [self showSplashScreen];
      fourSecondsRunning = YES;
      // In four seconds, call stop.
      [self performSelector:@selector(stop) withObject:nil afterDelay:4.0];
    }
    
    - (void) stop {
      // View wasn't tapped during the last 4 seconds. Do something.
      fourSecondsRunning = NO;
      [self hideSplashScreen];
      [self doSomething];
    }
    
    - (void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
      if (fourSecondsRunning) {
        fourSecondsRunning = NO;
        // Touched within the four seconds. Make sure "stop" is not called.
        [[NSRunLoop currentRunLoop] cancelPerformSelectorsWithTarget:self];
        [self hideSplashScreen];
        [self goToNextScreen];
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently, I am showing splash screen in my desktop application using the following way
I am using JWindow to display my splash screen during the application start up.
I've developed an application where I am using windows form as splash screen. After
In My application, I am using thread to show the splash screen. . .
How can I display a splash screen using C or C++ in Windows? What
I'm trying to create a splash screen using LWUIT. I want a form to
Ok, so i created a very simple splash screen using this tutorial: http://p-xr.com/android-tutorial-how-to-make-a-basic-splash-screen/ The
I'm building a multi-section splash page using jQuery scrollTo to navigate between sections. There's
I am using the RCP Splash Screen along with the built-in ProgressBar ( AbsolutePositionProgressMonitorPart
I want to implement a splash screen for my app, i'm using this code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.