UIKeyboardWillHide not triggered

前端 未结 5 1299
深忆病人
深忆病人 2021-01-20 12:43

I read many post here about this topic, but I wasn\'t able to find an answer to my question, so, hope you won\'t be bored about another UIKeyboard post :-)

In my vi

5条回答
  •  被撕碎了的回忆
    2021-01-20 13:03

    Swift $

    NotificationCenter.default.addObserver(self, selector: #selector(self.keyboardWillHide), name: NSNotification.Name.UIKeyboardWillHide, object: nil)
    
    func keyboardWillHide(notification: NSNotification){
         print("keyboardWillHide")
    }
    

提交回复
热议问题