TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jan 2015 |
Maintained by Vito Zhang.
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.
Cocoapods
pod 'VIPhotoView', '~> 0.1'
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];
}
VIPhotoView is released under the MIT license.