Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>in <code>AppDelegate.m</code> file just define splashView as a <code>UIImageView</code> and then in <code>didFinishLaunchingWithOptions</code> method write this type of code...</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; // Override point for customization after application launch. splashView = [[UIImageView alloc] initWithFrame:iphoneFrame]; splashView.image = [UIImage imageNamed:@"yourImageName"]; [self.window addSubview:splashView]; [self performSelector:@selector(loadViewIphone) withObject:nil afterDelay:4.0];// define time which you want.. [self.window makeKeyAndVisible]; return YES; } </code></pre> <p>and in loadViewIphone method just remove this splashView like bellow</p> <pre><code>-(void)loadViewIphone { [splashView removeFromSuperview]; self.window.rootViewController = self.tabBarController;// or any viewontroller instead of tabbarController [self.window makeKeyAndVisible]; // this bellow code is used for transactionaly swap splashscreen to our viewcontroller.. CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setType:kCATransitionFade]; [animation setDuration:0.5]; [animation setTimingFunction:[CAMediaTimingFunction functionWithName: kCAMediaTimingFunctionEaseInEaseOut]]; [[self.window layer] addAnimation:animation forKey:@"transitionViewAnimation"]; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload