Skip to content

精简版图片浏览器,使用UIScrollView进行图片的缩放、平移,可根据需求自定义界面或扩展功能

Notifications You must be signed in to change notification settings

xiaoyi3699/LLPhotoBrowser

Repository files navigation

我的博客:iOS使用UIScrollView处理图片的缩放(图片浏览器)<br />

//效果图

Image text

Image text

Image text

//代码示例

- (IBAction)btnClick:(UIButton *)sender {
    LLPhotoBrowser *photoBrowser = [[LLPhotoBrowser alloc] initWithImages:_images currentIndex:1];
    photoBrowser.delegate = self;
    [self presentViewController:photoBrowser animated:YES completion:nil];
}

- (void)photoBrowser:(LLPhotoBrowser *)photoBrowser didSelectImage:(UIImage *)image {
    NSLog(@"选中的图片为:%@",image);
}

About

精简版图片浏览器,使用UIScrollView进行图片的缩放、平移,可根据需求自定义界面或扩展功能

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published