IOS images exist locally, and images are retrieved from the local device. ios images exist.
The image exists locally, and then the image is retrieved from the local
// Save the image locally + (void) SaveImageToLocal :( UIImage *) image Keys :( NSString *) key {NSUserDefaults * preferences = [NSUserDefaults standardUserDefaults]; // [preferences persistentDomainForName: localPath]; [preferences setObject: UIImagePNGRepresentation (image) forKey: key];} // check whether related images exist locally + (BOOL) LocalHaveImage :( NSString *) key {NSUserDefaults * preferences = [NSUserDefaults standardUserDefaults]; // [preferences persistentDomainForName: LocalPath]; NSData * imageData = [preferences objectForKey: key]; if (imageData) {return YES ;} return NO;} // obtain the image from the local machine + (UIImage *) GetImageFromLocal :( NSString *) key {NSUserDefaults * preferences = [NSUserDefaults standardUserDefaults]; // [preferences persistentDomainForName: LocalPath]; NSData * imageData = [preferences objectForKey: key]; UIImage * image; if (imageData) {image = [UIImage imageWithData: imageData];} else {NSLog (@ "image not obtained locally");} return image ;}