Pages

Friday, September 13, 2013

Load Image from different Sources

Load Image from External URL

NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://someimageurl/imagename.jpg"]];
    
    
UIImage *image = [[UIImage alloc] initWithData:data];
    
Load Image from Project Itself
    

UIImage *image = [UIImage imageNamed:@"Disp1.jpg"];

No comments:

Post a Comment