KPFallingObjects displays falling effect of custom images on your UIView like falling snow, numbers, alphabets etc...
Simply include KPFallingObjectView.h and KPFallingObject.m file into your project directory.
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.
There are two methods that starts and stops falling images.
- (void)beginFallAnimation;
- (void)endFallAnimation;
iOS 7.0+
MIT License