The soft keyboard does not pop up when clicking UITextField in the iOS simulator

The problem is as stated in the title:

Performance 1: The cursor does not appear after the current UITextField is clicked, and other UITextField or UIButton on the same View cannot be operated;

Reason 1: The User Interaction Enabled option in the View property of the current UITextField is not checked;


Performance 2: The cursor does not appear after the current UITextField is clicked, and other UITextField or UIButton on the same View can be operated;

Reason 2: The User Interaction Enabled option in the current UITextField property is not checked;


Performance 3: The cursor appears after the current UITextField is clicked, and the computer keyboard can be used for input;

Reason 3: Because the simulator menu Hardware-keyboard is set to [link computer keyboard]; you can use the Shift + Command + K shortcut or the second in the menu Item close [link computer keyboard]; you can also use Command + K shortcut key or the third item in the menu [open emulator soft keyboard];

Guess you like

Origin blog.csdn.net/jhq1990/article/details/48996421