Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

View a photo with simple and basic interactive gesture.

License

Notifications You must be signed in to change notification settings

ForkPanda/VIPhotoView

Repository files navigation

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.

About

View a photo with simple and basic interactive gesture.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 93.5%
  • Ruby 6.5%

AltStyle によって変換されたページ (->オリジナル) /