我收到错误崩溃没有在互联网上没有连接时,这条线上网
fatal error: unexpectedly found nil while unwrapping an Optional value
。
let jsonData = try NSJSONSerialization.JSONObjectWithData(data!, options: .MutableContainers) as! NSDictionary // Line
self.dict = jsonData;
self.array1 = (self.dict.objectForKey("results") as? NSMutableArray)!
dispatch_async(dispatch_get_main_queue()) {
self.table.reloadData()
}
} catch {
print(error)
}
})
task1.resume()
请帮助任何帮助将apperciated
可能重复的[斯威夫特2的iOS 9做抓住尝试崩溃与意外的零发现](http://stackoverflow.com/questions/32187683/swift-2-ios-9-do-catch-try-crashing-with-unexpected-nil-found) – Moritz