@IBOutlet weak var itemImage: PFImageView!
override func tableView(tableView: (UITableView), cellForRowAtIndexPath indexPath: (NSIndexPath!), object: PFObject!) -> PFTableViewCell? {
var cell = tableView.dequeueReusableCellWithIdentifier("PFTableViewCell") as! ItemViewCell!
let items = object as! Items
let thumbnail = items.valueForKey("itemImage") as! PFFile!
cell.itemImage?.file = thumbnail
return cell
}
當我運行這個時,PFTableViewController只是無限加載。解析不加載到PFTableViewCell的文件圖像
註釋掉:
cell.itemImage .file =縮略圖
將加載TVC但沒有加載的圖像。我爲故事板中的每個連接/插座都起作用。
您仍需要重新加載與您加載圖像單元格中的索引路徑的實現代碼如下,否則即使其下載它不會顯示 – Joseph