Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/119.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 使用UIImagePickerController编辑现有图像_Ios_Swift_Uiimagepickercontroller_Edit_Photo - Fatal编程技术网

Ios 使用UIImagePickerController编辑现有图像

Ios 使用UIImagePickerController编辑现有图像,ios,swift,uiimagepickercontroller,edit,photo,Ios,Swift,Uiimagepickercontroller,Edit,Photo,是否可以使用UIImagePickerController在UIImageView中编辑图像?我可以拍摄并拾取照片,但我想使用imagepicker的编辑模式编辑我已经拾取并显示在视图上的图像 imagePicker = nil imagePicker = UIImagePickerController() imagePicker.delegate = self imagePicker.allowsEditing = true i

是否可以使用
UIImagePickerController
UIImageView
中编辑图像?我可以拍摄并拾取照片,但我想使用imagepicker的编辑模式编辑我已经拾取并显示在视图上的图像

imagePicker = nil
        imagePicker =  UIImagePickerController()
        imagePicker.delegate = self
        imagePicker.allowsEditing = true
        imagePicker.sourceType = .photoLibrary
        present(imagePicker, animated: true, completion: nil)

试试这个链接,希望对你有所帮助!我想使用UIImagePickerController编辑UIImageView中已有的图像。我不想让用户拍摄或选择图像,只需对我发送的图像使用编辑功能。我认为这甚至不可能。我也对你们的需求做了一些研究,并在苹果开发者论坛上读到了“UIImagePickerController”。但是没有找到你需要的东西。我建议您使用一些照片编辑库来完成这项工作。