1
作爲的tableView細胞我的圖像存在於所以我用下面的代碼來進行更改:(我更新從超高速緩存的圖像,如果有下面的任何混淆)更改圖像顯示在UIImage的夫特
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
if let nimage = cell.viewWithTag(111){ // 111 is a UIImageView
nimage.image = imageCache[urlString]
// above error - nimage has no member named image
nimage = imageCache[urlString]
// above error - cannot assign to 'let' value 'UIImage'
}
我該怎麼辦?
你必須嘗試image.image因爲你說,111是一個ImageView的 –
對不起,應該說'nimage.image'見上編輯 –
仍然收到錯誤'nimage沒有成員名爲image' –