Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning in IOS when keyboard appear connect with device ( not for Simulator) [duplicate]

I have a UITextField Ctrl-dragged as an @Outlet in my .swift class. Now in viewDidLoad i'm using this code

self.myTextField.keyboardType = UIKeyboardType.DecimalPad

When i launch my app on simulator and click on the UITextField i got this log

    Can't find keyplane that supports type 8 for keyboard 
    iPhone-Portrait-DecimalPad; 
    using 2617181025_Portrait_iPhone-Simple-Pad_Default

I have no crash or something but the keyboard is not displayed. I also tried to set it from Storyboard but it's the same.

I also noticed that whenever i click on any UITextField the keyboard is never displayed (but no log is shown for the default keyboard)

I'm using Xcode-Beta 3 anyone faced this issue?

like image 562
r4id4 Avatar asked Jul 21 '14 17:07

r4id4


People also ask

How do I get keyboard on iPhone simulator?

Just press ⌘K it will toggle keyboard.

Can not type in iOS simulator?

Before you start typing (when the on-screen keyboard shows up), press just the command key by itself and then release it. This should re-enable the keyboard in the simulator.

How can I tell if a keyboard is open or not in Swift?

…or take the easy way: When you enter a textField, it becomes first responder and the keyboard appears. You can check the status of the keyboard with [myTextField isFirstResponder] . If it returns YES , then the the keyboard is active.


2 Answers

I too had this problem after updating to the latest Xcode Beta. The settings on the simulator are refreshed, so the laptop (external) keyboard was being detected. If you simply press:

 iOS Simulator -> Hardware -> Keyboard -> Connect Hardware Keyboard

then the software keyboard will be displayed once again.

like image 98
Tony Abboud Avatar answered Oct 04 '22 00:10

Tony Abboud


Go to iOS Simulator-> Hardware-> Keyboard -> Uncheck the Connect Hardware Keyboard Option. This will fix the issue.

like image 33
Programming Learner Avatar answered Oct 04 '22 02:10

Programming Learner