更新时间:2022-11-05 13:30:30
要保存图像,您将需要使用uiimagepicoercontroller类从相机拍摄图片或从phto相册获取图片,然后您将需要使用方法UIImageJpEgRepresentation(image,int)获取图像数据,然后您可以通过使用核心数据或将其写入文件来持久保存图像数据
Well to save the image you will need to use he uiimagepicoercontroller class to take a picture from camera or get it from phto album, then u will need to use the mehod UIImageJpEgRepresentation(image,int) to get the images data, then u can persist the image data by using core data or writting it to a file