美文网首页
iOS - 图片浏览器,控制器只支持横屏,图片浏览器可横屏,缩放

iOS - 图片浏览器,控制器只支持横屏,图片浏览器可横屏,缩放

作者: 别人家的程序员 | 来源:发表于2017-06-29 10:21 被阅读72次

基于UICollectionView的pagingEnabled属性, github链接 https://github.com/DYLAN-LWB/WBImageBrowser

//listAM 为包含图片地址的数组

WBImageBrowserView *pictureBrowserView = [WBImageBrowserView pictureBrowsweViewWithFrame:[UIScreen mainScreen].bounds delegate:self browserInfoArray:listAM];
pictureBrowserView.orientation = self.interfaceOrientation;
pictureBrowserView.viewController = self;
pictureBrowserView.startIndex = 2;  //开始索引
[pictureBrowserView showInView:[UIApplication sharedApplication].delegate.window];

相关文章

网友评论

      本文标题:iOS - 图片浏览器,控制器只支持横屏,图片浏览器可横屏,缩放

      本文链接:https://www.haomeiwen.com/subject/ddhmcxtx.html