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

前端 未结 30 921
小蘑菇
小蘑菇 2020-12-23 15:47

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

相关标签:
30条回答
  • 2020-12-23 16:27

    I met this problem whenever I rotate the simulator. Following the suggestions to change Hardware options does not work for me, neither reboot iOS Simulator.

    I found a trick that click the editing area after rotation makes Mac keyboard end up work.

    0 讨论(0)
  • 2020-12-23 16:29

    None of these suggestions worked for me. I closed the iOS Simulator app and restarted it. That fixed it for me.

    0 讨论(0)
  • 2020-12-23 16:32

    From Simulator menu >> Hardware >> Keyboard >> Connect Hardware keyboard

    OR

    just press ⌘ + ⌂ + K

    0 讨论(0)
  • 2020-12-23 16:33

    In Xcode 9 I faced the same problem with the iPhone 8+ simulator. I was able to solve it this way:

    1. Open ~/Library/Preferences/com.apple.iphonesimulator.plist file
    2. Find the problematic simulator identifier (shown in the Devices and Simulator window)
    3. Set CaptureKeyboardInput value to YES
    4. Restart the Simulator

    0 讨论(0)
  • 2020-12-23 16:33

    Just use CMD+SHIFT+K and the keyboard will activate on it's own.

    0 讨论(0)
  • 2020-12-23 16:33

    After doing so many stuffs, just a restart of my machine and enabling the below worked.

    Enabling this in simulator: Hardware -> Keyboard -> Connect Hardware Keyboard

    0 讨论(0)
提交回复
热议问题