Ошибка Custom TableViewCell: класс Swift Dynamic_cast безусловенIOS

Программируем под IOS
Anonymous
Ошибка Custom TableViewCell: класс Swift Dynamic_cast безусловен

Сообщение Anonymous »

Я получаю сообщение об ошибке, так как класс Swift Dynamic_cast является безусловным для следующего:

Код: Выделить всё

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
var   cell :CustomTableViewCell = tableView.dequeueReusableCellWithIdentifier("cell") as CustomTableViewCell;    // error here

return cell
}
Пожалуйста, помогите мне решить эту проблему.
Спасибо!

Подробнее здесь: https://stackoverflow.com/questions/275 ... onditional

Вернуться в «IOS»