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

时间:2018-11-30 02:58:09

标签: ios

是否可以通过编程方式打开Apple Reminders应用程序?

3 个答案:

答案 0 :(得分:1)

尝试一下

let url = URL(string: "x-apple-reminder://")
    UIApplication.shared.open(url!, options: [:]) { (finish) in

}

所有Apple应用方案的参考: https://ios.gadgethacks.com/news/always-updated-list-ios-app-url-scheme-names-0184033/

答案 1 :(得分:0)

我已经在Swift 5+和iOS 13中进行了尝试,您需要使用以下url方案。(早期的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提醒应用程序。

希望对其他人有帮助。

答案 2 :(得分:0)

,如果您使用x-apple-reminderkit:// today,则可以在“提醒”中打开“今日”视图。

尽管如此,仍然试图弄清楚如何打开特定列表或标记视图。

相关问题