首页添加格式化笔记入口并跳转空白页面

This commit is contained in:
2026-07-12 21:16:52 +08:00
parent 5b3e7f5bae
commit e7fe4a959f
2 changed files with 21 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
//
// FormatNoteViewController.swift
// Note
//
// Created by fish on 2026/7/12.
//
import UIKit
class FormatNoteViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
title = "格式化笔记"
navigationItem.largeTitleDisplayMode = .never
view.backgroundColor = .systemBackground
}
}
+3
View File
@@ -91,6 +91,9 @@ extension ViewController: UITableViewDelegate {
case "格式化日志": case "格式化日志":
let viewController = FormatLogViewController() let viewController = FormatLogViewController()
navigationController?.pushViewController(viewController, animated: true) navigationController?.pushViewController(viewController, animated: true)
case "格式化笔记":
let viewController = FormatNoteViewController()
navigationController?.pushViewController(viewController, animated: true)
default: default:
break break
} }