| | |
| | | |
| | | |
| | | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { |
| | | removeLaunchScreenCacheIfNeeded() |
| | | WeChatTools.register(appid: WeChatAPPID, link: "https://app.xqzhihui.com/app/") |
| | | return true |
| | | } |
| | |
| | | |
| | | func onResp(_ resp: BaseResp) { |
| | | |
| | | } |
| | | |
| | | 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缓存失败") |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |