Skip to content
View a photo with simple and basic interactive gesture.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
VIPhotoView
VIPhotoViewDemo.xcodeproj
VIPhotoViewDemo
VIPhotoViewDemoTests
.gitignore
LICENSE
README.md
VIPhotoView.podspec

README.md

VIPhotoView

VIPhotoView is a view use to view a photo with simple and basic interactive gesture. Pinch to scale photo, double tap to scale photo, drag to scoll photo.

Screenshot

demo.gif

Installation

CocoaPods

pod 'VIPhotoView', '~> 0.1'

Usage

Init VIPhotoView with frame and image, than add it to a view.

- (void)viewDidLoad {
    [super viewDidLoad];

    UIImage *image = [UIImage imageNamed:@"test.jpg"];
    VIPhotoView *photoView = [[VIPhotoView alloc] initWithFrame:self.view.bounds andImage:image];
    photoView.autoresizingMask = (1 << 6) -1;
    
    [self.view addSubview:photoView];
}

##License

VIPhotoView is released under the MIT license.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.