Consider a UITableView with grouped style. How can I add a subview to a cell and align it with the right (or left) border of the table view group, without hardcoding the margin?
Consider a UITableView with grouped style. How can I add a subview to a
Share
Add the subview to the cell’s
contentView. ThecontentViewis adjusted for the margins and other accessories added to the cell.Note that this will only work if you don’t have any
accessoryTypeoraccessoryViewset.