uitableviewcell textlabel too long and push detailtextlabel out of view
Simplest for me was to subclass UITableViewCell and override the layoutSubviews. Couldn’t find a reliable way to calculate the positions from just the label frames so just hardcoded the accessory width for in this case a UITableViewCellStyleValue1 cell with a UITableViewCellAccessoryDisclosureIndicator accessory type. – (void)layoutSubviews { [super layoutSubviews]; CGFloat detailTextLabelWidth = [self.detailTextLabel.text sizeWithFont:self.detailTextLabel.font].width; CGRect detailTextLabelFrame … Read more