Latest 0.1
Homepage https://github.com/vitoziv/VIPhotoView
License MIT
Platforms ios 6.0, requires ARC
Authors

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.

Latest podspec

{
    "name": "VIPhotoView",
    "version": "0.1",
    "summary": "Use VIPhotoView to view a photo with basic interactive gesture.",
    "description": "                   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. n",
    "homepage": "https://github.com/vitoziv/VIPhotoView",
    "authors": {
        "Vito Zhang": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "source": {
        "git": "https://github.com/vitoziv/VIPhotoView.git",
        "tag": "0.1"
    },
    "source_files": "VIPhotoView/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This