iOS How to get contact image full screen
<p>The AddressBook framework provides ABPersonCopyImageData for getting the contact image for each address book entry. However this API returns original image size which is way too big to display on screen. How does one get a full screen image? Below is the code I am using</p>

<pre><code>             NSData *contactImageData = (NSData*)ABPersonCopyImageData(personRef);
             UIImage *img = [[UIImage alloc] initWithData:contactImageData];

             self.backgroundImage.image = img; 
             [img release];
             [contactImageData release];
</code></pre>

<p>where self.backgroundImage is a UIImageView set up in IB with frame rectangle 320x460</p>

<p>Thanks</p>
