Problem in display image from a url

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

  1. macrumors 6502

    iphonejudy

    Joined:
    Sep 12, 2008
    #1
    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?
     

Share This Page