任何人都可以幫助我找出運行我的應用程序時遇到的以下錯誤嗎?「連接中斷」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