1
votes

I have two UITextFields inside of a custom UITableView cell. Selecting the first textfield works just fine, and the keyboard appears as it should. However, while one of the textfields is selected, if you try and tap on another textfield, the keyboard continues to show but the textfield won't register keyboard typing input.

I have tried for hours with no luck in getting this to work. After a second tap on the 2nd textfield, it finally focuses and all is fine. Any solutions?

enter image description here

1
Show some Code / Screensderdida
@derdida gif addedMatt Butler
@MattButler, How do you convert screen to Gif?Rajamohan S
@MohanSingh ezgif.com/video-to-gif or any other online gif converterMatt Butler
@MattButler oh okay thankz you friend :DRajamohan S

1 Answers

0
votes

I had the same Problem with some touch events - try to force iOS to run on the main Thread:

dispatch_async(dispatch_get_main_queue(),{
   self.yourTextField.becomeFirstResponder()
})