First, hide their own soft keyboard
When there are multiple Uitextfield controls that want to hide their soft keyboard by clicking "Return", the best way to do this is to use the Do End on Exit event. This event is triggered when you click the Return button in the lower-right corner of the soft keyboard.
The event has a sender parameter that represents the current text box, so you can write a common event-handling method (. m file).
-(Ibaction) Textfield_didendonexit: (ID) sender { [sender Resignfirstresponder];}
Then fill in the declaration of the method in the. h file--
-(Ibaction) Textfield_didendonexit: (ID) sender;
go back to storyboard and press Command+option+enter to open the secondary window so that the secondary window displays the. h file. Select a Uitextfield control, click the right mouse button pop-up panel, the left mouse button hold the circle next to the Do End on Exit event, and then drag to the right. h file on the Textfield_didendonexit method, the event connection is established. You then follow the same procedure to connect the Do End on exit events of other Uitextfield controls to the Textfield_didendonexit method.
Running, you can find the soft keyboard for each text box to be hidden by clicking "Return".
iOS development in Storybord hidden keyboard method