Return to Snippet

Revision: 65503
at December 9, 2013 11:35 by cruddell001


Initial Code
- (UIImage *) getImageFromURL: (NSString *)theURL {
    UIImage *theImage = NULL;
    NSString *imageFileName = [BT_strings getFileNameFromURL:theURL];
    NSData *imageData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:theURL]];
    theImage =  [[UIImage alloc] initWithData:imageData];
    [BT_fileManager saveImageToFile:theImage fileName:imageFileName];
    return theImage;
}

Initial URL

                                

Initial Description

                                

Initial Title
Download Image from URL

Initial Tags

                                

Initial Language
Objective C