UISegmentedControl text with multiple lines
问题 Is there any possibility to make UISegmentedControl with multiple lines of text in iOs 9+? So far i've tryed: Variants from SO topics: This, this and this one Make an extension: extension UISegmentedControl { func makeMultiline(numberOfLines: Int) { for segment in self.subviews { let labels = segment.subviews.filter { $0 is UILabel } // [AnyObject] labels.map { ($0 as UILabel).numberOfLines = numberOfLines } } } } Inherit from UISegmentedControl and set new class to SegmentedControl in