Skip to content

KPFallingObjects displays falling effect of custom images on your UIView like falling snow, numbers, alphabets etc..

License

Notifications You must be signed in to change notification settings

KrishnaPatell/KPFallingObjects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KPFallingObjects

KPFallingObjects displays falling effect of custom images on your UIView like falling snow, numbers, alphabets etc...

Screenshots

Installation

Simply include KPFallingObjectView.h and KPFallingObject.m file into your project directory.

Usage

Simply import KPFallingObjectView.h file in your controller.

#import KPFallingObjectView.h

And then Write the following code in your UIViewController's .m file.

KPFallingObjectView *obj = [[KPFallingObjectView alloc] initWithFrame:_viewContainer.frame];
obj.arrFlakeFileName = [[NSMutableArray alloc] initWithObjects:@"0.png", @"1.png", @"4.png", @"6.png", @"8.png", nil];
[_viewContainer addSubview:obj];
[obj beginFallAnimation];

You can pass custom images in to arrFlakeFileName. You can also manage flakesCount, flakesWidth, flakesheight, minimum and maximum duration of animation.

Methods

There are two methods that starts and stops falling images.

- (void)beginFallAnimation;
- (void)endFallAnimation;

Requirements

iOS 7.0+

License

MIT License

About

KPFallingObjects displays falling effect of custom images on your UIView like falling snow, numbers, alphabets etc..

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published