title: How to clip larger images to fit into tabBar icons in tabBarController built programmatically.
body: <p>I have created a tab controller programmatically.</p>
  
  <p>Now, I wanted to add images to the different tabs, for which I used :</p>
  
  <pre><code>  self.tabBarItem.image = [UIImage imageNamed:@"Sample_Image.png"];
  </code></pre>
  
  <p>The problem is Sample_image is larger in size than is required by tab.</p>
  
  <p>So just want to know how can I clip the image to fit into tabs.</p>