杨锴
2025-01-25 de7d1cfaf36a725a45192a0942aaf1e8674854fe
XQMuse/AppDelegate.swift
@@ -15,6 +15,7 @@
            func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        removeLaunchScreenCacheIfNeeded()
        WeChatTools.register(appid: WeChatAPPID, link: "https://app.xqzhihui.com/app/")
                        return true
            }
@@ -73,7 +74,18 @@
    }
    func removeLaunchScreenCacheIfNeeded() {
        let filePath = NSHomeDirectory() + "/Library/SplashBoard"
        if FileManager.default.fileExists(atPath: filePath) {
            do {
                try FileManager.default.removeItem(atPath: filePath)
                print("清除LaunchScreen缓存成功")
            } catch {
                print("清除LaunchScreen缓存失败")
            }
        }
    }
}