I have a static UITableView
with a UITableViewCell
that contains a label. I have it set up to look nice right now, but when a user has their Dynamic Type turned to a larger setting, the label is cut off.
The UILabel
has static ~15px constraints set up on all four edges of the UITableViewCell's
content view.
How can I make the UITableViewCell's
height change dynamically as the Dynamic Type adjusts the size of the UILabel's
body formatted text.
Subscribe to UIContentSizeCategoryDidChangeNotification and when you get notified change your heightforRowAtIndexPath accordingly.