func keyboardWillChangeFrameNotification(note: NSNotification) { // TODO 添加键盘弹出的事件 let userinfo = note.userInfo! let rect = userinfo[UIKeyboardFrameEndUserInfoKey]!.CGRectValue var boardH = AppHeight - rect.origin.y print("boardh: \(boardH),shit : \(…