NSUserDefaults保存图片

存:[[NSUserDefaults standardUserDefaults] setObject:UIImagePNGRepresentation(image) forKey:key];

取:

NSData* imageData = [[NSUserDefaults standardUserDefaults] objectForKey:key];

UIImage* image = [UIImage imageWithData:imageData];

你可能感兴趣的:(NSUserDefaults保存图片)