完善任务流程、键盘适配与页面交互
This commit is contained in:
@ -1,10 +1,8 @@
|
||||
//
|
||||
// AppDelegate.swift
|
||||
// suixinkan
|
||||
//
|
||||
// Created by hanqiu on 2026/7/6.
|
||||
//
|
||||
|
||||
import IQKeyboardManagerSwift
|
||||
import IQKeyboardToolbarManager
|
||||
import UIKit
|
||||
|
||||
@main
|
||||
@ -14,6 +12,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
@objc var window: UIWindow?
|
||||
|
||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
||||
configureKeyboardManager()
|
||||
UmengBootstrap.configureIfNeeded()
|
||||
WeChatManager.shared.registerIfNeeded()
|
||||
if AppStore.shared.privacyAgreementAccepted, !AppStore.shared.token.isEmpty {
|
||||
@ -36,5 +35,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
|
||||
}
|
||||
|
||||
private func configureKeyboardManager() {
|
||||
IQKeyboardManager.shared.isEnabled = true
|
||||
IQKeyboardManager.shared.keyboardDistance = 12
|
||||
IQKeyboardManager.shared.resignOnTouchOutside = true
|
||||
|
||||
IQKeyboardToolbarManager.shared.isEnabled = true
|
||||
IQKeyboardToolbarManager.shared.toolbarConfiguration.useTextInputViewTintColor = true
|
||||
IQKeyboardToolbarManager.shared.toolbarConfiguration.previousNextDisplayMode = .alwaysShow
|
||||
IQKeyboardToolbarManager.shared.playInputClicks = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user