Текст детали (субтитров) не отображается. Однако данные доступны, потому что, когда добавлен вызов println(), он печатает Необязательные ( "данные" ) на консоли с ожидаемыми данными. В раскадровке UITableViewController настроен на соответствующий класс, стиль Cell View Table - "Subtitle", а идентификатор повторного использования - "ячейка". Как я могу отобразить информацию о субтитрах?
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
var cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as UITableViewCell
dispatch_async(dispatch_get_main_queue(), { () -> Void in
cell.textLabel.text = self.myArray[indexPath.row]["title"] as? String
cell.detailTextLabel?.text = self.myArray[indexPath.row]["subtitle"] as? String
println(self.myArray[indexPath.row]["subtitle"] as? String)
// The expected data appear in the console, but not in the iOS simulator table view cell.
})
return cell
}