NotificationCenter.default.addObserver(self, selector:
#selector(pictureCaptured), name: NSNotification.Name(rawValue:
"**_UIImagePickerControllerUserDidCaptureItem**"), object: nil)
NotificationCenter.default.addObserver(self, selector:
#selector(pictureRejected), name: NSNotification.Name(rawValue:
"_UIImagePickerControllerUserDidRejectItem"), object: nil)
与UIImagePickerController相关的所有函数都是什么样子?
"_UIImagePickerControllerUserDidRejectItem"
我正在尝试创建一个函数,该函数在打开图库并拾取但未编辑图像时调用。该功能 _UIImagePickerControllerUserDidCaptureItem 打开相机并拍摄照片时调用。当选择图库中的图像时,我该如何调用一个函数? DidFinishPickingMedia无效,因为它仅在选择并编辑图像后才调用。选择后如何立即调用函数? 谢谢。