老样子,看图
- 1
- 2 请求网络图 url
let urllist=["http://pic9.nipic.com/20100902/2029588_234330095230_2.jpg"
,"http://pic1a.nipic.com/2008-08-26/200882614319401_2.jpg"
,"http://www.ahhnh.com/data/upload/2015-10/2015101940975833.jpg"
,"http://pic10.nipic.com/20100929/4879567_114926982000_2.jpg"
,"http://img2.imgtn.bdimg.com/it/u=2081796248,4191591232&fm=21&gp=0.jpg"]
let describeList=["张三","李四","李四","李四","李四"]
let vc = ImagePreviewViewController( ImageUrlList: urllist ,IsDescribe: true,DescribeList: describeList )
self.navigationController?.pushViewController(vc, animated: true )
```
- 3 本地图
```
let ImageList = [
"tutorial_background_00",
"tutorial_background_01",
"tutorial_background_02",
"tutorial_background_03"]
let describeList=["张三","李四","李四","李四","李四"]
let vc = ImagePreviewViewController(ImagenamedList: ImageList, IsDescribe: true, DescribeList: describeList )
self.navigationController?.pushViewController(vc, animated: true )
```
```
let ImageList = [
UIImage(named:"tutorial_background_00")!,
UIImage(named:"tutorial_background_01")!,
UIImage(named:"tutorial_background_02")!,
UIImage(named:"tutorial_background_03")!]
let describeList=["张三","李四","李四","李四","李四"]
let vc = ImagePreviewViewController(UIImageList: ImageList, IsDescribe: true, DescribeList: describeList )
self.navigationController?.pushViewController(vc, animated: true )
```
如需代码,请移动到--->http://www.jianshu.com/p/0f950c180cb8