Tutorial details

Falling Image | App Code for Sale | Preview

Falling Image | iOS Tutorial

How to make an image fall down the screen

Overview PAGE TOP

Reference: http://www.geekylemon.com/WEBPROTECT-xcodefallingimage.htm

In this tutorial i will be showing you how to make an image fall down the screen


  • 1 Image File
  • 1 UIImageView

With this cool feature it can brighten up and screen with funky menus or even games, with a falling image you can set theme like making it snow or even rain you can really have a lot of fun with this code

ViewController.h PAGE TOP

@interface ViewController :UIViewController {
IBOutlet UIImageView *image;
    NSTimer *moveObjectTimer;

ViewController.m PAGE TOP

@implementation ViewController
-(void) viewDidLoad {
moveObjectTimer = [NSTimer scheduledTimerWithTimeInterval:0.1 target:selfselector:@selector(moveObject) userInfo:nil repeats:YES];
-(void) moveObject {
image.center = CGPointMake(image.center.x, image.center.y +5);

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.