You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a cell has an accessoryView(chevron), this can affect the height of the cell because it will make self.contentView narrower. BUT if you've already calculated the height(using height = [cell.contentView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize].height; ), the cell will get truncated or be too long, depending on WHEN you decide to show the accessoryView. Workaround?
The text was updated successfully, but these errors were encountered:
Unfortunately, this is a limitation of the iOS 7 method of manual cell height calculation. This is one of the reasons why Apple provided the new self sizing cell mechanism in iOS 8, which shouldn't have this issue.
You'll need to manually determine the width of the contentView when the accessory view is showing on a cell, then set the contentView.bounds to this new size and recalculate the height by calling [cell.contentView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize].height;
You may find that it is better to manually add your own "fake" disclosure chevron using an image.
When a cell has an accessoryView(chevron), this can affect the height of the cell because it will make self.contentView narrower. BUT if you've already calculated the height(using
height = [cell.contentView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize].height;
), the cell will get truncated or be too long, depending on WHEN you decide to show the accessoryView. Workaround?The text was updated successfully, but these errors were encountered: