Simple App Delegate method to show an UIAlertController (in Swift)

后端 未结 5 2070
暖寄归人
暖寄归人 2020-12-13 18:00

In obj-C when another iOS app (mail attachment, web link) was tapped with a file or link associated with my app. I would then catch this on openURL or didFinishLaunchi

5条回答
  •  情歌与酒
    2020-12-13 18:26

    The accepted answer in Swift 3 in case it helps anyone:

    self.window?.rootViewController?.present(importAlert, animated: true, completion: nil)
    

提交回复
热议问题