Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我制作一个 detailTextLabel 时,我只想让它在标签中正确,但它总是在 textLabel 下方,我如何像 UITableViewCellStyleValue1 演示一样更改它?
您必须设置详细文本标签右对齐的单元格属性,如下所示
cell.detailTextLabel.textAlignment = UITextAlignmentRight