Latest 1.0.2
Homepage https://github.com/shiwenwen/SWPhotoBrowser
License MIT
Platforms ios 7.0
Dependencies SDWebImage
Frameworks UIKit
Authors

仿微博,朋友圈的图片浏览,功能丰富

==========================
适用于UIcollectionView,UIScrollView,UIImage,UIButton以及普通视图中的图片浏览,支持网络以及本地图片的加载,暂不支持视频。
点击的图片需要为UIButton或者UIImageView
在图片的点击方法中 使用即可(例如UIcollectionView可以在didSelected代理中使用)

   SWBrowserPhotoController *bro = [[SWBrowserPhotoController alloc]initWithPhotos:self.arrayImageUrl  sourceImagesContainerView:self.scrollView];
    //sourceImagesContainerView是当前图片视图所在的源控制器 例如UIcollectionView,view,Image,UIButton
    bro.showIndexTitle = YES;//是否显示几分之几张得标题
    bro.showPageControl = YES;//底部是否显示PageControl
    bro.currentIndex = (int)button.tag; //当前点击的的图片的index ,即点击的是第几张图片 
    bro.allowSaveImage = YES; //是否允许保存图片 长按保存
    bro.showDelete = YES; //是否显示删除按钮 设置代理bro.delegate(SWPhotoBrowserDelegate) 可在删除回调-(void)photoBrowser:        (SWBrowserPhotoController *)photoBrowser deleteAtIndex:(NSInteger)index中进行相应处理
    bro.FillTheSamllPic = YES;//图片尺寸小于屏幕尺寸时,YES进行屏幕大小填充 NO则是原始尺寸显示
    bro.maxZoomScale = 2;//最大放大倍数 不设置则默认最大为2倍
    [bro show];//显示

   

演示

image

Latest podspec

{
    "name": "SWPhotoBrowser",
    "version": "1.0.2",
    "summary": "u4effu5faeu535auff0cu670bu53cbu5708u7684u56feu7247u6d4fu89c8uff0cu529fu80fdu4e30u5bcc",
    "description": "u4effu5faeu535auff0cu670bu53cbu5708u7684u56feu7247u6d4fu89c8uff0cu6548u679cu4e0du9519uff0cu529fu80fdu4e30u5bccuff0cu4f7fu7528u7b80u5355u3002",
    "homepage": "https://github.com/shiwenwen/SWPhotoBrowser",
    "screenshots": "https://raw.githubusercontent.com/shiwenwen/SWPhotoBrowser/master/SWPhotoBrowser.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u77f3u6587u6587": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/shiwenwen/SWPhotoBrowser.git",
        "tag": "1.0.2"
    },
    "source_files": "SWPhotoBrowser/SWPhotoBrowser/*.{h,m}",
    "frameworks": "UIKit",
    "dependencies": {
        "SDWebImage": []
    }
}

Pin It on Pinterest

Share This