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.
考虑一个UITableView分组样式。如何将子视图添加到单元格并将其与表格视图组的右(或左)边框对齐,而无需对边距进行硬编码?
UITableView
将子视图添加到单元格的contentView. 为添加到单元格的contentView边距和其他附件进行调整。
contentView
请注意,这仅在您没有任何accessoryType或accessoryView设置时才有效。
accessoryType
accessoryView