iphone memory management
<p>1.UIImageView *img1=[[UIImageView alloc]initwithImage:[UIImage imageNamed:@"1.png"]];</p>

<p>2.UIImageView *img2=[[UIImageView alloc]initwithImage:[UIImage imageNamed:@"2.png"]];</p>

<p>a) img1.image = [UIImage imageNamed:@"2.png"];</p>

<pre><code>b) [img1 setImage:img2];
</code></pre>

<p>which way utilizes minimum memory among  a and b?why?</p>

<p>if i need to do this multiple times which way you suggest?</p>
