Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CGPoint position = [gestureRecognizer locationInView:_imagescrollview];
- CGPoint positioninimageview = [_imagescrollview convertPoint:position toView:_editimageview];
- - (UIImageView *)getImageViewUnderTouch:(CGPoint)position {
- UIImageView *imageview = nil;
- for (int i = 0; i < [imageviewarray count]; i++) {
- imageview = [imageviewarray objectAtIndex:i];
- if (CGRectContainsPoint(imageview.frame,position)) {
- return imageview;
- }
- }
- return nil;
- }
- CGPoint positioninbounds = [imageview convertPoint:position toView:_editimageview];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement