我有這樣的代碼低於當keyboardWillShowNotification被稱爲運行:unexpectedly found nil while unwrapping an Optional value: func keyboardWillShow(_ notification: Notification) {
//ERROR IN THE LINE BELOW
keyb
我已經註冊了兩個UIKeyboardNotifications(keyboardWillShow和keyboardWillHide),兩者都被觸發。問題出現在文本字段移回原始位置的動畫僅在鍵盤消失後被觸發。無論如何減少獲取通知和動畫文本字段之間的延遲? func keyboardWillShow(notification: NSNotification) {
let info = not