詳細(サブタイトル)テキストは表示されません。ただし、println() 呼び出しが追加されると、期待されるデータとともに Optional("data") がコンソールに出力されるため、データは利用可能です。ストーリーボードでは、UITableViewController が適切なクラスに設定され、Table View Cell Style が「Subtitle」に設定され、再利用識別子が「cell」に設定されています。字幕情報を表示するにはどうすればよいですか?
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's table view cell.
})
return cell
}