如何访问 Eureka 中 ImageRow 选择的图像?
form = Section()
<<< ImageRow("Pic"){
$0.title = "Picture"
}.cellSetup { cell, row in
if let picPath = NSURL(string: _user.pic!),
data = NSData(contentsOfURL: picPath) {
cell.imageView?.image = UIImage(data: data)
}
}
对于文本字段,我这样做是为了获取表单值:
let values = form.values()
if values["Name"]! != nil {
name = values["Name"] as! String
}
试图弄清楚如何获得图像行的值。我需要将所选图像上传到我的服务器。