• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iOS splash screen animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iOS splash screen animation


  • Subject: iOS splash screen animation
  • From: Koen van der Drift <email@hidden>
  • Date: Wed, 10 Apr 2013 09:35:59 -0400

Hi,

When my app starts, I'd like to show a splash screen with a logo, etc, and animate it to the main screen after a short delay.

After some searching, I came up with the following at the end of application:didFinishLaunchingWithOptions:

    UIImageView *splashScreen = [[UIImageView alloc] initWithImage:[UIImage imageNamed: @"Default.png"]];
    [self.window.rootViewController.view addSubview: splashScreen];

    [self.window makeKeyAndVisible];

    NSLog(@"begin splash");
    [UIView animateWithDuration: 0.2
                          delay: 0.5
                        options: UIViewAnimationOptionCurveEaseOut
                     animations: ^{splashScreen.alpha = 0.0;
                     }
                     completion: ^ (BOOL finished) {
                         [splashScreen removeFromSuperview];
                         NSLog(@"end splash");
                     }
     ];


On the iOS Simulator, I do see the splash, but the animation is choppy. On my iPhone I don't see the splash screen at all, just a black screen which goes to my main screen after the delay.

Any suggestions what I could be doing wrong?

Thanks,

- Koen.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: iOS splash screen animation
      • From: glenn andreas <email@hidden>
    • RE: iOS splash screen animation
      • From: Julius Oklamcak <email@hidden>
  • Prev by Date: Making a Copy of a NSArray originally created from CoreFoundation using a Custom Allocator
  • Next by Date: Re: Understanding NSTask
  • Previous by thread: Making a Copy of a NSArray originally created from CoreFoundation using a Custom Allocator
  • Next by thread: RE: iOS splash screen animation
  • Index(es):
    • Date
    • Thread