resignFirstResponder not hiding keyboard on textFieldShouldReturn

后端 未结 14 1702
我在风中等你
我在风中等你 2020-12-05 10:11

I have a view with a UITextField which should hide the keyboard when return is pressed.

My function is this:

- (BOOL)textFieldShouldReturn:(UITextFie         


        
14条回答
  •  春和景丽
    2020-12-05 10:35

    xcode 4.5.1

    Simply click control then on the textfield drag and release on the .h file

    (control key+ drag)

    then in the pop up menu select

    connection=acton;
    name= any name;
    type=id;
    event=did end on exit;
    arguments=sender;
    

    then click connect button

提交回复
热议问题