Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to type in textfield in iphone simulator using Mac Keyboard?

I'm working on a basic iOS app which supports both portrait and landscape modes. When the iPhone simulator keyboard is open in landscape and I'm switching the app to portrait mode I'm unable to type anything in any text field using my Mac physical keyboard.

Has anyone experienced this before? Is it a known bug?

like image 277
Deepak Carpenter Avatar asked Sep 24 '13 10:09

Deepak Carpenter


People also ask

How do I activate the keyboard on my Iphone simulator?

Just press ⌘K it will toggle keyboard.

How do you simulate Iphone on Macbook?

Open the iOS simulator, if it's not already open. From the Hardware menu, select Device, and then select the type of device you want to simulate. The simulator window will change to match the dimensions of the device you selected.

How do I get the keyboard in Xcode?

Click the simulator menu Hardware —> Keyboard, check the Connect Hardware Keyboard sub-menu, and then uncheck it at once. Now the keyboard will be prompted automatically when you click the text field or text view UI component in the iOS simulator.


1 Answers

Found a great solution that worked for me.
Open simulator, then find menu Hardware -> Keyboard has three options:

  1. iOS uses same layout as OS X : This option disables the Mac keyboard
  2. Connect Hardware Keyboard : This option enables Mac keyboard but the keyboard will not show up.
  3. Toggle Software keyboard : This option will allow you type using your Mac keypad and will show the iOS on screen keyboard as well.
like image 183
iosCurator Avatar answered Nov 05 '22 15:11

iosCurator