I've set a custom view as the cameraOverlayView
of an UIImagePickerController
and enabled editing mode on it.
Now when it switches to editing mode the overlay view is still there. How can I remove it from the editing view?
I haven't found anything related to this in the official documentation.
Have you tried view.removeFromSuperview ?
I take it you've implemented the delegate function
optional func imagePickerController(_ picker: UIImagePickerController,
didFinishPickingMediaWithInfo info: [String : AnyObject])
and this happens before that function gets called.
Can your custom view detect that its parent has changed and remove itself?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.