Problem in display image from a url

Discussion in 'iOS Programming' started by iphonejudy, Feb 27, 2009.

  1. iphonejudy macrumors 6502


    Sep 12, 2008
    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];


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

Share This Page