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?
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?