Post

Replies

Boosts

Views

Activity

iOS 13 UIActivityViewController automatically present previous VC after image saving
I'm trying to implement “Save image to Library” function and then return back to the current view controller, but on a new iOS 13 it dismisses back to the view controller that presented the current one:PHPhotoLibrary.requestAuthorization({(_ status: PHAuthorizationStatus) -> Void in }) let shareItems: Array = [newImg,"Hello"] as [Any] let activityController = UIActivityViewController(activityItems: shareItems, applicationActivities: nil) if UIDevice.current.userInterfaceIdiom == .pad { activityController.popoverPresentationController?.sourceView = saveButton } present(activityController, animated: true)
16
0
13k
Jul ’19