如何解决“在展开可选值时意外发现nil”的问题?

时间:2019-12-24 06:11:35

标签: ios swift uitableview

我是新的Swift-IOS,下面是我的代码,我不知道我的朋友在他的Xcode上执行操作时没有问题,但是当我执行操作时遇到错误可以有人帮忙:

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {

        let cell = tableView.dequeueReusableCell(withIdentifier: "arkadas")!
        cell.textLabel?.text = arkadasIsimleri[indexPath.row]
        cell.detailTextLabel?.text = arkadasYaslari[indexPath.row]
        return cell
    }

0 个答案:

没有答案