项目
在 GitHub 查看
vitoziv/VIPhotoView
关于
View a photo with simple and basic interactive gesture.
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
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

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.
探索相关项目
加载中…