def tableview_cell_for_row(self, tableview, section, row):
cell = ui.TableViewCell('subtitle')
if section == 0:
nullable = self.tinfo[row][3] == 1
cell.text_label.text = self.tinfo[row][1]
fmt = 'Type: {} Nullable: {} Default: {}'
cell.detail_text_label.text = fmt.format(self.tinfo[row][2], nullable, self.tinfo[row][4])
elif section == 1:
cell.text_label.text = self.iinfo[row][1]
cell.selectable = False
return cell
评论列表
文章目录