【发布时间】:2016-04-27 20:53:50
【问题描述】:
使用这个 Github 扩展从 URL 设置图像:https://github.com/Haneke/HanekeSwift
我将图像存储在这样的数组中:
var userFile = [PFFile]()
图像存储为 URL,我将图像设置在 UIImageView 中,如下所示:
imageView.hnk_setImageFromURL(NSURL(string: userFile[indexPath.row].url!)!, placeholder: nil, format: nil, failure: nil, success: nil)
如何在同一个UIImageView 中显示所有图像,但要查看下一张照片,我必须点按UIImageView?
【问题讨论】:
-
您希望它们并排还是在点击时一个接一个地切换?
-
@EugeneZhenyaGordin - 首先我想显示第一张图片,然后切换到下一个点击。不完全像“幻灯片”,但是当我点击
UIImageView时,图像会变为下一张。
标签: ios swift uiimageview uiimage