title: Setting titles for a UISegmentedControl from an NSArray
body: <p>I tried to subclass <code>UISegmentedControl</code>.<br>
  I'm passing an <code>NSArray</code> from the view and try to set the titles for the <code>UISegmentedControl</code> from that <code>NSArray</code>.<br>
  I used the <code>initWithArray</code> method but it is not setting the value from the array.</p>
  
  <p>Here is my subclass of <code>UISegmentedControl</code>.</p>
  
  <p><strong>WTSegmentedControl.h</strong></p>
  
  <pre><code>@interface WTSegmentedControl : UISegmentedControl {
  
  }
  @end
  </code></pre>
  
  <p><strong>WTSegmentedControl.m</strong></p>
  
  <pre><code>#import "WTSegmentedControl.h"
  
  @implementation WTSegmentedControl
  
  - (id)initWithItems:(NSArray *)items {
      if (self = [super initWithItems:items]) {
  
      }
      return self;
  }
  </code></pre>
  
  <p>Now from the view I'm calling this method. </p>
  
  <p>I have connected the outlet like this:</p>
  
  <pre><code>@property (nonatomic,strong) IBOutlet WTSegmentedControl  *control;
  
  - (void)viewDidLoad {
      NSArray *names = [[NSArray alloc] initWithObjects:@"yes", @"no", nil];
      control = [[WTSegmentedControl alloc] initWithItems:names];
  }
  </code></pre>
  
  <p><code>NSArray</code> is passing correctly but the <code>titles</code> are not set.</p>
  
  <p>Can anyone please help me with this?</p>