RE: iOS splash screen animation
RE: iOS splash screen animation
- Subject: RE: iOS splash screen animation
- From: Julius Oklamcak <email@hidden>
- Date: Wed, 10 Apr 2013 10:27:55 -0400
> 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.
> [snip]
> Any suggestions what I could be doing wrong?
Do this in your root view controller's -viewWillAppear: method. You also
need to ensure that it only happens once at app launch. What I did was to
create the splash screen UIImageView in my root view controller's
-viewDidLoad method and assign it to an ivar. Then, in -viewWillAppear: if
the ivar is not nil, I start the delay/fade animation and nil out the ivar
when it is completed. You also need to set the splash screen's UIImageView
userInteractionEnabled property to YES, otherwise any taps on the splash
screen will bleed thru to the underlying views.
_______________________________________________
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