usa precio plus over online desactivar apple iphone objective-c uiimageview uiimage image-zoom

precio - iphone xs



¿Cómo hacer zoom en un área de imagen seleccionada en iPhone? (1)

Creo que este código te será útil

- (id)initWithImage:(UIImage *)image { self = [super initWithImage:image]; if (self) { [self setUserInteractionEnabled:YES]; UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTap:)]; UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleDoubleTap:)]; UITapGestureRecognizer *twoFingerTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTwoFingerTap:)]; [doubleTap setNumberOfTapsRequired:2]; [twoFingerTap setNumberOfTouchesRequired:2]; [self addGestureRecognizer:singleTap]; [self addGestureRecognizer:doubleTap]; [self addGestureRecognizer:twoFingerTap]; [singleTap release]; [doubleTap release]; [twoFingerTap release]; } return self; } #pragma mark Private - (void)handleSingleTap:(UIGestureRecognizer *)gestureRecognizer { if ([delegate respondsToSelector:@selector(tapDetectingImageView:gotSingleTapAtPoint:)]) [delegate tapDetectingImageView:self gotSingleTapAtPoint:[gestureRecognizer locationInView:self]]; } - (void)handleDoubleTap:(UIGestureRecognizer *)gestureRecognizer { if ([delegate respondsToSelector:@selector(tapDetectingImageView:gotDoubleTapAtPoint:)]) [delegate tapDetectingImageView:self gotDoubleTapAtPoint:[gestureRecognizer locationInView:self]]; } - (void)handleTwoFingerTap:(UIGestureRecognizer *)gestureRecognizer { if ([delegate respondsToSelector:@selector(tapDetectingImageView:gotTwoFingerTapAtPoint:)]) [delegate tapDetectingImageView:self gotTwoFingerTapAtPoint:[gestureRecognizer locationInView:self]]; }

Tengo un ImageView cuando se hace clic en esa imagen, se debe crear un círculo transparente y, nuevamente, al hacer doble clic en ese círculo, se debe hacer zoom en una Imagen particular en esa área del círculo. Cualquier sugerencia sería apreciada.