Saturday , February 13 2016
Home / Apple iOS Development / UIImageView or UIView Blast Animation

UIImageView or UIView Blast Animation

Hi guys today we are going to work on some UIImageView animation we can apply this animation on UIView or any subclass of UIView. First of all we create a new project

You will have to add UIView+Explode these files in your project. These files are Created by Daniel Tavares and i found in a source code.

Now you just have to

  • Make a block
  • Create an ImageView
  • Assign Image to Image View
  • Animate on a tap gesture
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-(void)setTappedGestureWithBlock:(GESTURE_Tapped)block
 
{
 
self.userInteractionEnabled = YES;
 
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapped:)];
 
tap.numberOfTapsRequired=1;
 
[self addGestureRecognizer:tap];
 
objc_setAssociatedObject(self,&GESTURE_BLOCK,block, OBJC_ASSOCIATION_COPY);
 
}

 

  • Call  [weakSelf lp_explode];

Now you may download the complete project for better understanding click here 

About Qasim Masud

Leave a Reply

Your email address will not be published. Required fields are marked *