【发布时间】:2017-12-01 22:59:33
【问题描述】:
谁能帮我弄清楚我在运行我的应用程序时遇到的以下错误?
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let customCell = tableView.dequeueReusableCell(withIdentifier: "tableViewCell", for: indexPath) as! CustomTableViewCell
customCell.selectionStyle = .none
let dictionaryAtIndex = contentArray[indexPath.row] as Dictionary <String, Any>
customCell.activityIndicator .isHidden = false
customCell.activityIndicator .startAnimating()
customCell.imgView.sd_setImage(with: URL(string: imageURL!), completed: { (image, error, cacheType, url) in
customCell.activityIndicator .stopAnimating()
customCell.activityIndicator .isHidden = true
print("image downloaded %@",image ?? "")
})
return customCell
}
每次滚动时它都会崩溃。获取通信错误:{ count = 1, contents = "XPCErrorDescription" => { length = 22, contents = "Connection interrupted" } }> Xcode 7 (iOS 9) 通信错误: .请尽快帮助我。
【问题讨论】:
-
您可以尝试加载本地图像吗? ...只是为了测试
标签: ios swift ios9 ios10 sdwebimage