PDA

View Full Version : Problem in display image from a url




iphonejudy
Feb 27, 2009, 11:04 PM
I am using the below code to display image from url

NSString *pathimage = vController.currentUrl1;

NSURL *urlImage= [NSURL URLWithStringathimage];

NSData *data = [NSData dataWithContentsOfURL:urlImage];

UIImage *img = [[UIImage alloc] initWithData:data cache:YES];

vController.imageview1.image=img;

But the image is not displayed.Can anyone tell me solution?