title: How to set Segment in UISegmentControl programmatically?
body: <p>I'm setting UISegmentControl programmatically in my iPhone app. By default it has 2 segment. In my code I'm populating more than two segments. How do I set this, any help?</p>
  
  <p><strong>Update</strong></p>
  
  <p>My question is how do I put more than 2 tabs on segmentController by code?</p>