How to Add Animation to Launch Screen in iOS 9.3 Using Objective C

how to add animation to launch screen in iOS 9.3 using Objective c

Basically, you can't make an animated splash screen.
However, you can duplicate the launch screen in your storyboard and make it the entrance-view controller (VC) of your app. Then when the view is loaded, you can start your animation. As a final result, you will have an "animated splash screen."

The sequence progresses like this:

App starts → display static launch screen → transition to entrance-VC, which won't be visible to the user because the scenes look the same → entrance-VC view is loaded as an animation.

In summary, treat your launch screen's .xib file as the first frame of your animated launch screen.

How to add animated splash screen in our application

You can use sequence of images, here is code:

for(NSInteger i=1;i<=totalImages;i++){
NSString *strImage = [NSString stringWithFormat:@"Activity_%d",i];
UIImage *image = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:strImage ofType:@"png"]];
[imageArray addObject:image];
}
splashImageView.animationImages = imageArray;
splashImageView.animationDuration = 0.8;

and just call startAnimation and endAnimation method of UIImageView.

Launch Image Splash Screen Animation in SWIFT

You don't need to use layers, you can achieve your zoom effect simply via UIViews and UIView animation blocks.

Create a custom view controller with just an image view added to its view, assign that view controller as a window's rootViewController. Use a UIView animation block to increase the scale of the image view (via CGAffineTransform). In the animation's completion block, you can assign your actual initial view controller to the window's rootViewController.

How to play a video splash in ios?(Objective c)

It's really simple guy.
You can find the solution in sample project here :
https://github.com/chinsyo/uber-video-welcome

You can make a fake splash screen and load it after the original Splash appeared with smoothly animation then you play the video as you want

Bests,

How to create animated splash screen not with Images in iOS

simply you need to present a UIViewController which is hold your animations and dismiss it when your app is ready to launch. but also I think its better to follow apple HIG .. as apple describe you should

Supply a launch image to improve user experience.

Avoid using your launch image as an opportunity to provide:

An “application entry experience,” such as a splash screen An About
window Branding elements, unless they are a static part of your
application’s first screen Because users are likely to switch among
applications frequently, you should make every effort to cut launch
time to a minimum, and you should design a launch image that downplays
the experience rather than drawing attention to it.

Generally, design a launch image that is identical to the first screen
of the application.

Exceptions:

Text. The launch image is static, so any text you display in it will
not be localized.

UI elements that might change. Avoid including elements that might
look different when the application finishes launching, so that users
don’t experience a flash between the launch image and the first
application screen.



Related Topics



Leave a reply



Submit