keyboard height varies when appearing
问题 I am trying to bring my views up when the keyboard appears by modifying the bottom constrain to the keyboard height. But the keyboard height returned to me is varying. When I tap on a textfield in the simulator, the keyboard height was 302 . When I try to toggle on and off the software keyboard, it shows 260 when the keyboard appears. Why is this happening? NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(FriendsViewController.keyboardWillShow(_:)), name: