How can I make the text in one of the buttons in my UISegmentedControl span multiple lines?
See Question&Answers more detail:osHow can I make the text in one of the buttons in my UISegmentedControl span multiple lines?
See Question&Answers more detail:osUse UIAppearance to get things done. The below code snippet will work. Call this before creating your segment.
Objective-C
[[UILabel appearanceWhenContainedIn:[UISegmentedControl class], nil] setNumberOfLines:0];
Swift
UILabel.appearanceWhenContainedInInstancesOfClasses([UISegmentedControl.self]).numberOfLines = 0