Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. CGPoint position = [gestureRecognizer locationInView:_imagescrollview];
  2. CGPoint positioninimageview = [_imagescrollview convertPoint:position toView:_editimageview];
  3.  
  4. - (UIImageView *)getImageViewUnderTouch:(CGPoint)position {
  5. UIImageView *imageview = nil;
  6.  
  7. for (int i = 0; i < [imageviewarray count]; i++) {
  8. imageview = [imageviewarray objectAtIndex:i];
  9.  
  10. if (CGRectContainsPoint(imageview.frame,position)) {
  11. return imageview;
  12. }
  13. }
  14. return nil;
  15. }
  16.  
  17. CGPoint positioninbounds = [imageview convertPoint:position toView:_editimageview];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement