iOS 把图片存到相册中

把图片存到相册中

-(void)savaPicAction{

    UIImageWriteToSavedPhotosAlbum(_imageView.image, nil, nil, nil);

    

    UIAlertView * alert = [[UIAlertView alloc] initWithTitle:nil message:@"保存成功" delegate:self cancelButtonTitle:nil otherButtonTitles:@"确定", nil];

    [alert show];

    

}

备注:意思是把_imageView.image这个图片保存到相册中,下面是一个保存成功的提示
原文地址:https://www.cnblogs.com/longyun/p/3732517.html