How can get image from a path in to UITAbleViewCell ?

Posted by srikanth rongali on Stack Overflow See other posts from Stack Overflow or by srikanth rongali
Published on 2010-04-23T10:48:29Z Indexed on 2010/04/23 14:03 UTC
Read the original article Hit count: 355

I have the following path in NSString *path1,

/Users/srikanth/Library/Application Support/iPhone Simulator/User/Applications/9E6E8B22-C946-4442-9209-75BB0E924434/Documents/snook.jpg  

How can I show the image snook.jpg. I need it to show in UITableViewCell for

cell.imageView.image   

if path1 has the path. I used the following to get the last part of the path1 , snook.jpg.

NSURL *url = [NSURL URLWithString:path1];
NSString *imageString = [url path];

But, url is showing as nil.
How can I do it ? Thank you.

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about iphone-sdk-3.0