【问题标题】:Swift IQkeyboard manager . Code doesnt work in the simulator. Keyboard doesnt pop up at all when the text field is pressedSwift IQ 键盘管理器。代码在模拟器中不起作用。按下文本字段时键盘根本不会弹出
【发布时间】:2020-12-28 02:42:56
【问题描述】:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

    IQKeyboardManager.shared.enable = true
    IQKeyboardManager.shared.enableAutoToolbar = false
    
    
    
    FirebaseApp.configure()
    
    let db = Firestore.firestore()
        print(db)
    
   
    
    return true
}

【问题讨论】:

    标签: swift xcode


    【解决方案1】:

    转到 IOS 模拟器 -> 硬件 -> 键盘并切换“切换软件键盘”或命令 k。

    【讨论】:

    • 谢谢,这有帮助,但是,它只在我按下命令 K 时弹出,而不是在我真正希望它在我单击模拟器中的文本字段时弹出。请问大家对这个问题有什么看法吗?
    • 对我来说,我只是做 IOS 模拟器 -> 硬件 -> 键盘并切换“切换软件键盘”并单击,当您使用命令 k 或插入键盘时,它往往会关闭。
    • 没问题,希望对您有所帮助。
    猜你喜欢
    • 2016-04-02
    • 2018-12-08
    • 2011-02-08
    • 2019-05-11
    • 2011-02-14
    • 2021-07-22
    • 1970-01-01
    • 2013-06-15
    • 2014-09-28
    相关资源
    最近更新 更多