TagSave and Load UIImage in Document directory

Save and Load UIImage in Documents directory on iPhone

S

The following function saves UIImage in test.png file in the user Document folder: - (void)saveImage: (UIImage*)image { if (image != nil) { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString* path = [documentsDirectory stringByAppendingPathComponent: [NSString stringWithString: @"test...

Category