Guest User

Untitled

a guest
Jul 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. if (ABS(currentTouchLocation.y-self.firstTouchLocation.y) > 4 && ABS(currentTouchLocation.x-self.firstTouchLocation.x)< 2)
  2. {
  3.  
  4. self.state = UIGestureRecognizerStateFailed;
  5.  
  6. }
  7.  
  8. self.newImageView = [[ElementImageView alloc] initWithImage:self.image];
  9. self.newImageView.frame = [self.superview convertRect:self.frame toView:[UIApplication sharedApplication].keyWindow];
  10.  
  11. [[UIApplication sharedApplication].keyWindow addSubview:self.newImageView];
Add Comment
Please, Sign In to add comment