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)
Run Code Online (Sandbox Code Playgroud) 我有(voltron)用于 LLDB。寄存器、堆栈等的窗口单独打开。如何自定义窗口,让他们一起安顿下来,如何在图片上?我知道有必要使用 tmuxinator。
