Open andrealufino opened 7 years ago
I'm trying to implement a zoom feature for an iCarousel item view. This is my code :
iCarousel
NSString *pathToHDImage = [documentsFolderPath stringByAppendingPathComponent:solution.localHDURL]; if (!view) { view = [[AsyncImageView alloc] initWithFrame:self.view.bounds]; view.contentMode = UIViewContentModeScaleAspectFit; UIPinchGestureRecognizer *pinchGesture = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(handlePinch:)]; pinchGesture.cancelsTouchesInView = false; UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)]; panGesture.cancelsTouchesInView = false; pinchGesture.delegate = panGesture.delegate = self; [view addGestureRecognizer:pinchGesture]; [view addGestureRecognizer:panGesture]; ((AsyncImageView *)view).imageURL = [NSURL fileURLWithPath:pathToHDImage]; } else ((AsyncImageView *)view).imageURL = [NSURL fileURLWithPath:pathToHDImage];
The problem is that my handlePan: and handlePinch: never get called. How can I do? The main goal is to implement zoom feature for every iCarousel item view.
handlePan:
handlePinch:
Hi, Any update on this? I need to implement the same.
Nothing for now, I'm sorry.
I'm trying to implement a zoom feature for an
iCarousel
item view. This is my code :The problem is that my
handlePan:
andhandlePinch:
never get called. How can I do? The main goal is to implement zoom feature for everyiCarousel
item view.