title: Go to a UISegmentedControl index in Swift
body: <p>I've connected a UISegmentedControl outlet. In my viewDidLoad() I check some stuff out to determine if I need to jump to the third index of the UISegmentedControl but I had no luck. </p>
  
  <p>I made this: </p>
  
  <pre><code>self.mainSelector.isEnabledForSegmentAtIndex(2)
  </code></pre>
  
  <p>Of course it did't work. What should I do to jump automatically to the third segment? </p>