ios - 如何以编程方式打开 Apple Reminders 应用程序?

标签 ios

有没有办法以编程方式打开 Apple Reminders 应用程序?

最佳答案

我已经在 Swift 5+ 和 iOS 13 上试过了,你需要使用下面的 url scheme。(之前 x-apple-reminder:// 可以,但现在不行了)

x-apple-reminderkit://

if let url = URL(string: "x-apple-reminderkit://"), UIApplication.shared.canOpenURL(url) {
        UIApplication.shared.open(url, options: [:]) { (isDone) in
            
        }
    }

它将从您的应用程序中打开 iOS 提醒应用程序。

希望对其他人有帮助。

关于ios - 如何以编程方式打开 Apple Reminders 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53550596/

相关文章:

ios - Storyboard异常 - Storyboard不包含带标识符的 View Controller

ios - 使用多个图像和文本创建 UIAlertView

ios - 如果日历访问被拒绝,则显示警报 Swift 3

ios - 如何检测键盘顶部的单词建议栏是否显示?

ios - 如何将资源保存到 CloudKit sharedCloudDatabase?

ios - 在浏览器中打开 Cordova 应用程序时无法测试它

ios - UIAccessibility - 画外音不适用于 NSMutableAttributedString

ios - 是否可以通过在实时应用程序中验证收据来获取 21007 状态码?

audio - 设计 iPhone 应用程序的建议音量是多少?

ios - 检查很多 int 是否相等