UIImage imageNamed
<p>I'm trying to use a url as a <code>UIImage</code> in the OpenFlow API.</p>

<pre><code>NSString *imageUrl = [[[newsEntries objectAtIndex:0] objectForKey: @"still"] retain];
NSURL *url2 = [NSURL URLWithString:imageUrl];
NSData *photoData = [NSData dataWithContentsOfURL:url2];
UIImage *imageUI = [UIImage imageWithData:photoData]
UIImageView *myImage = [UIImageView initWithFrame:imageUI];
[(AFOpenFlowView *)self.view setImage:[UIImage imageNamed:myImage]];
[imageUr release];

[(AFOpenFlowView *)self.view setNumberOfImages:3]; 
</code></pre>

<p>I have tried it like this, but no success. The only way I got this API working was using the <code>imageNamed</code> type. The <code>initwithData</code> has no success.</p>

<p>So how can I change this <code>NSString</code> to finally become a <code>imageNamed</code> method?</p>
