autoresize label in segmentControl to avoid unwanted truncation

pull/1/head
Fredrik Lillejordet 7 years ago committed by Matthew Chen
parent 64fba4308c
commit 16014f321a

@ -743,6 +743,7 @@ typedef NS_ENUM(NSInteger, CellState) { kArchiveState, kInboxState };
}
[_segmentedControl setTitle:unreadString forSegmentAtIndex:0];
[_segmentedControl sizeToFit];
[_segmentedControl.superview setNeedsLayout];
[_segmentedControl reloadInputViews];
}

Loading…
Cancel
Save