IQKeyboardManager 侧滑 问题

2018-11-20  本文已影响12人  目染江夏
问题图

开启iq,侧滑时,会出现tableview 向下移动
解决方法 :

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        IQKeyboardManager.shared.enable = true
    }
    
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        IQKeyboardManager.shared.enable = false
    }

上一篇下一篇

猜你喜欢

热点阅读