title: How to add subview (a small image view at its edge) to the segment-1 in a uisement control
body: <p>In my iPhone app I have used an UI Segment Controller with three segments.<br>
  I need to add a subView already created <code>to the second segment</code>,</p>
  
  <p>for this I have used follow code </p>
  
  <pre><code>[segment addSubview:ImgVw forSegment:1];
  
  [segment addSubview:BlueButton forSegment:3];
  </code></pre>
  
  <p>it prompts a warning </p>
  
  <blockquote>
    <p>instance method addSubView for segment not found return type defaults to id</p>
  </blockquote>
  
  <p>And crashes the app</p>
  
  <blockquote>
    <p>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UISegmentedControl addSubview:forSegment:]: unrecognized selector sent to instance 0x8a8a7a0'</p>
  </blockquote>
  
  <p>I need to add different subViews for different segments in UISegment controller at many places</p>
  
  <p>how?</p>