title: what is the difference between UIImageView and drawInRect?
body: <p>I want to display so many images in table cells. I knew two methods to show an image. </p>
  
  <p>One is creating an instance to UIImageView and show it</p>
  
  <pre><code>CGRect rect=CGRectMake(x,y,width,height);
  UIImageView *image=[[UIImageView alloc]initWithFrame:rect];
  [image setImage:[UIImage imageNamed:@"sample.jpg"]];
  </code></pre>
  
  <p>Another method is,</p>
  
  <pre><code>CGRect rect=CGRectMake(x,y,width,height);
  [[UIImage imageNamed:@"sample.jpg"] drawInRect:rect];
  </code></pre>
  
  <p>Now, my question is, what is the difference between these two? Which one is efficient? Or someother function is available better than this?</p>
  
  <p>Thanks in advance....</p>