Skip to content

app-bootstrap/ImageGalleryView

Repository files navigation

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

About

An easy image gallery for Objective-C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published