Tutorial details

Animated Loading Screen | App Code for Sale | Preview

Animated Loading Screen | iOS Tutorial

How to create animated loading screens in your apps

Overview PAGE TOP

Reference: http://www.geekylemon.com/xcode-animated-loading-scree

In this tutorial i will be showing you how to create animated loading screens in your apps


  • 7 image files

As xcode does not allow you to add animated loading screen and only a single default.png i show you how to work a way round it with animations and delayed actions

ViewController.h PAGE TOP

@interface ViewController : UIViewController {
IBOutlet UIImageView *AnitmationimageView;
IBOutlet UIImageView *Loadimageview;



ViewController.m PAGE TOP

@implementation ViewController

- (void)viewDidLoad
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
AnitmationimageView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"L1.png"],
[UIImage imageNamed:@"L2.png"],
[UIImage imageNamed:@"L3.png"],
[UIImage imageNamed:@"L4.png"], nil];
[AnitmationimageView setAnimationRepeatCount:1];
AnitmationimageView.animationDuration = 3;
[AnitmationimageView startAnimating];
[self performSelector:@selector(delay1) withObject:nil afterDelay:3];

- (void)didReceiveMemoryWarning
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.

-(void)delay1 {
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[AnitmationimageView setAlpha:0];
[UIView commitAnimations];
[self performSelector:@selector(delay2) withObject:nil afterDelay:1.0];


-(void)delay2 {
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[Loadimageview setAlpha:1];
[UIView commitAnimations];
[self performSelector:@selector(delay3) withObject:nil afterDelay:1.5];

-(void)delay3 {
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[Loadimageview setAlpha:0];
[UIView commitAnimations];


Reference PAGE TOP


0 Comments Leave a comment

Please login in order to leave a comment.

Newest first

to your Chupamobile Account.

The Easiest way to Launch your next App or Game.

Join Chupamobile and get instant access to thousands of ready made App and Game Templates.

Creating an account means you’re okay with Chupamobile’s Terms of Service and Privacy Policy.