def tableview_cell_for_row(self, tableview, section, row):
# Create and return a cell for the given section/row
import ui
cell = ui.TableViewCell()
try:
cell.text_label.text = self.items[row]['title']
except IndexError:
return
cell.text_label.text_color = 'red' if self.items[row]['accessory_type'] == 'checkmark' else 'black'
return cell
评论列表
文章目录