mac回車鍵 (1)

我正在使用UITextfied同時單擊顯示的內容的鍵盤上,但是當我按下返回鍵時,鍵盤不會消失。我使用下面的代碼。 func textFieldShouldReturn(textField: UITextField!)-> Bool// called when 'return' key pressed. return NO to ignore.{return true;}該方法…
我正在使用UITextfied同時單擊顯示的內容的鍵盤上,但是當我按下返回鍵時,鍵盤不會消失。我使用下面的代碼。 func textFieldShouldReturn(textField: UITextField!)-> Bool// called when 'return' key pressed. return NO to ignore.{return true;}該方法…