Convert UIImage to NSData and save with core data

前端 未结 8 774
不知归路
不知归路 2021-01-30 18:43

I have a UIImageView whose image gets set via UIImagePicker

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPi         


        
8条回答
  •  梦如初夏
    2021-01-30 19:01

    For swift its just:

    UIImage to NSData

    imageData = UIImagePNGRepresentation(image)
    

提交回复
热议问题