任何人都可以帮助我找出运行我的应用程序时遇到的以下错误吗?“连接中断”iOS 9上的通信错误
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
}
它崩溃每次当我scrolling.Getting通信错误:{数= 1,内容= “XPCErrorDescription”=> {长度= 22,内容= “连接中断”}}>的Xcode 7(的iOS 9)沟通错误:请尽早帮助我。
可以尝试加载本地图片? ...仅供测试 – cristallo