ios开发,将图片存到相册中

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

@interface IWViewController ()


@end


@implementation IWViewController


- (void)viewDidLoad
{
    [super viewDidLoad];
    
    for (int i = 0; i<9; i++) {
        NSString *file = [NSString stringWithFormat:@"/Users/aplle/Desktop/images/%d.jpg", i];
        
        UIImage *image = [UIImage imageWithContentsOfFile:file];
        UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);
    }
    
}

@end