Prevent resignFirstResponder (losing focus) in UITextField when user hides UIKeyboard - ios

I need the focus to stay in my UITextfield when the UIKeyboard is hidden.
I have a bluetooth scanner attached to the device and it needs to scan into the UITextField regardless of the UIKeyboard being on screen or not.
This has worked flawlessly for 5 years until recent iOS updates.

Related

React Native KeyboardAvoidingView on IOS without predictive text causes errors when changing keyboards

When I disable predictive text on an IOS device keyboardAvoidingView no longer works when changing between the text keyboard and the emoji keyboard.
When you first focus on the textInput the keyboardAvoidingView works as expected, however if you then select the emoji keyboard option the keyboard avoiding view drops and the keyboard is covering the textInput.
Note this is only an issue on Apple devices when predictive text has been turned off in the settings.
Any suggestions on how to work around this would be great please.

Keep UIInputViewController visible while hardware keyboard is connected

I have a custom keyboard extension that provides special symbols that can’t be typed with a hardware keyboard, similar to the emoji keyboard. iOS automatically dismisses third-party keyboards when a hardware keyboard is connected (but it doesn’t for the emoji keyboard), which is undesirable for my keyboard (and others such as GIF and sticker keyboards).
My question is how do you keep your custom keyboard visible when a hardware keyboard is connected?
SwiftKey was able to do this (see here) but how?

In iframe if user starts typing (keyboard open) screen got blur in iOS Device

In iframe, if the user starts typing (keyboard open) screen got blur in iOS Device, it is not visible until unless user scrolls down & focus out the keyboard.
when keyboard press in ios device the iframe position varies, in my code i have written iframe position fixed with 100 vh but due position my ui get distort
Scnario :In Safari/Chrome in iOS 9.3.2 (I tested on iPhone 6s) clicking button while the input is focused, causes the iFrame to be removed, but the cursor stays blinking on screen. Furthermore, the keyboard stays open (clicking keys does nothing). After dismissing the keyboard, clicking anywhere else in the screen causes the keyboard to pop back again.
my issue got solved by body
html {height:100%; overflow-x:hidden }
may be it will help others

keypad in iPhone 4 after updating to iOS 7

I have set my keypad appearance to dark for whole application for all textfields used in app and it works fine, but when my app goes in background and then I tried to open keypad, it is set to white.
This is observed in iPhone 4 after updating to iOS 7, not any other devices.
one more thing if I am opening keypad just in viewDidLoad() method, then only it remains to white. If I open it in viewDidAppear() or open keypad on taping on text field then works well.
Any view life cycle method affects keypad appearance..?

Split keyboard moving offscreen

I have a very strange bug that I can't fix. It is related to UITextField and Split Keyboard. When any textfield (say Email textfield) becomes a first responder then keyboard appears just fine. But when you select another textfield (say password) then keyboard is moving downwards and below the screen. If you touch again any other input field then keyboard disappears forever. I cannot change the frame of keyboard so I can do nothing about it. If you know about this issue and know how to avoid it please tell me. I'm using iPad 4th gen iOS 6, this bug also happens on both iOS Simulators ios 5.1 and ios 6.1.
I have also tried empty UIViewController with just UITextfields on it.

Resources