虽然设置了单元格的字幕样式,但是detailTextLabel 仍然没有显示出来。
let cellIdentifier = "homeFeedItem"
let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier) ?? UITableViewCell(style: .subtitle, reuseIdentifier: cellIdentifier)
cell.textLabel?.text = self.arrItems[indexPath.row]["title"]
cell.detailTextLabel?.text = self.arrItems[indexPath.row]["desc"]
cell.imageView?.image = UIImage(named: self.arrItems[indexPath.row]["icon"]!)
我尝试打印 self.arrItems[indexPath.row]["desc"]。没关系。请帮我修复它。