title: UISegmentedControl text with multiple lines
body: <p>Is there any possibility to make UISegmentedControl with multiple lines of text in iOs 9+?</p>
  
  <p>So far i've tryed:</p>
  
  <ol>
  <li>Variants from SO topics:
  <a href="https://stackoverflow.com/questions/19868284/two-lines-of-text-in-a-uisegmentedcontrol">This, </a><a href="https://stackoverflow.com/questions/5614284/uisegmentedcontrol-text-with-multiple-lines">this </a><a href="https://stackoverflow.com/questions/28028619/is-it-possible-to-create-multi-line-uisegmentedcontrol">and this one</a></li>
  <li><p>Make an extension:</p>
  
  <pre><code>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 }    
          }
      }
  }
  </code></pre></li>
  <li><p>Inherit from UISegmentedControl and set new class to SegmentedControl in Identity Inspector</p>
  
  <pre><code>class MultilineSegmentedControl: UISegmentedControl
  {
      override func didMoveToSuperview()
      {
          for segment in subviews
          {
              for subview in segment.subviews
              {
                  if let segmentLabel = subview as? UILabel
                  {
                      segmentLabel.numberOfLines = 2
                  }
              }
          }
      }
  }
  </code></pre></li>
  <li><p>Set image with text instead of title and change frame of UISegmentedControl in </p>
  
  <pre><code>viewDidLayoutSubviews()
  </code></pre>
  
  <p>method. It makes UISegmentedControl height larger, but image keeps it's height as if UISegmentedControl didn't enlarge and on first interaction UISegmentedControl shrinks to it's default height.</p></li>
  </ol>