更改 UITableViewCell 中标签的字体 属性

Change font property for label in UITableViewCell

我有一个 table 有 10 个单元格。我知道如何更改所有单元格中的字体、大小等。但我只需要在第三个单元格中更改字体。我该怎么做?

你可以试试这个

 if indexPath.row == 2 && indexPath.section == yoursection {
       cell.textLabel?.font = UIFont.systemFont(ofSize: 10)
  } else {
       cell.textLabel?.font = UIFont.boldSystemFont(ofSize: 100)
  }