From 849a5e40e4193695b2684cffd16a63a8a892a03d Mon Sep 17 00:00:00 2001 From: fish Date: Sun, 12 Jul 2026 20:47:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=93=E5=BC=80=E5=A4=87?= =?UTF-8?q?=E5=BF=98=E5=BD=95=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Note/ViewController.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Note/ViewController.swift b/Note/ViewController.swift index 70df32d..717555f 100644 --- a/Note/ViewController.swift +++ b/Note/ViewController.swift @@ -79,5 +79,16 @@ extension ViewController: UITableViewDelegate { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { tableView.deselectRow(at: indexPath, animated: true) + + let item = menuItems[indexPath.section][indexPath.row] + if item.title == "打开备忘录" { + openSystemNotesApp() + } + } + + private func openSystemNotesApp() { + guard let url = URL(string: "mobilenotes://") else { return } + guard UIApplication.shared.canOpenURL(url) else { return } + UIApplication.shared.open(url, options: [:], completionHandler: nil) } }