copy ImageGalleryView.h
, ImageGalleryView.m
into your project.
Add the following import to the top of the file:
#import "ImageGalleryView.h"
ImageTapView *tmpView = (ImageTapView *)[self.view viewWithTag: i];
CGRect convertRect = [[tmpView superview] convertRect:tmpView.frame toView:self.view];
ImageGalleryView *scrollView = [[ImageGalleryView alloc] initWithFrame:(CGRect){i * self.innerScrollView.bounds.size.width, 0, self.innerScrollView.bounds.size}];
[scrollView setContentWithFrame:convertRect];
[scrollView setImage:tmpView.image];
[self.innerScrollView addSubview: scrollView];
scrollView.delegate = self;
[scrollView setAnimationRect];
The MIT License