Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 825 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 825 Bytes

ImageGalleryView

Preview

preview

Usage

Installation

copy ImageGalleryView.h, ImageGalleryView.m into your project.

Add the following import to the top of the file:

#import "ImageGalleryView.h"

Configuration

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];

License

The MIT License