Отсутствует возврат UITableViewCell

Я уверен, что этот вопрос задавался ранее, но я не могу найти ответ, который решает мою проблему с помощью вложенной логики if-else и switch-case.
у меня естьUITableView с двумя разделами, каждый раздел имеет две пользовательские ячейки. Вот и все. 4 кл. Но независимо от того, что я делаю, я получаю "Отсутствует возвращение в функции, которая должна вернутьсяUITableViewCell"

Вопрос Как я могу изменить эту настройку так, чтобы внизу я получил инструкцию else, которая будет удовлетворять быстрой логике?

Любая помощь будет очень высоко ценится

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {

    if indexPath.section == 0{

        switch (indexPath.row) {
        case 0:
            let cell0: SettingsCell! = tableView.dequeueReusableCellWithIdentifier("cell0", forIndexPath: indexPath) as! SettingsCell
        cell0.backgroundColor = UIColor.redColor()
        break

        case 1:
            let cell1: SettingsCell! = tableView.dequeueReusableCellWithIdentifier("cell1", forIndexPath: indexPath) as! SettingsCell
        cell1.backgroundColor = UIColor.whiteColor()
         break

        default:
            break
        }
    }

    if indexPath.section == 1{

        switch (indexPath.row) {
        case 0:
            let cell10: SettingsCell! = tableView.dequeueReusableCellWithIdentifier("cell10", forIndexPath: indexPath) as! SettingsCell
        cell10.backgroundColor = UIColor.redColor()
        break

        case 1:
            let cell11: SettingsCell! = tableView.dequeueReusableCellWithIdentifier("cell11", forIndexPath: indexPath) as! SettingsCell
        cell11.backgroundColor = UIColor.whiteColor()
         break

        default:
            break

        }
    }
}

Ответы на вопрос(0)

Ваш ответ на вопрос