iOS 13 update broke my app's keyboard on its first display

随声附和 提交于 2020-01-30 11:25:29

问题


I'm updating an app developed for iOS 8 (kinda old), but I'm having issues on the first time the keyboard is being displayed after recent iOS 13 update:

Keyboard appears as an effect of calling [textfield becomeFirstResponder], regardless if it's being called explicitly in the code (into the viewDidLoad method) or implicitly when the field is tapped, but only occurs the first time it appears after the view itself appears. I'm "solving" it calling [textfield becomeFirstResponder] and [textfield resignFirstResponder] on the viewWillAppear method, but that's a poorly designed patch and I'm looking for a real solution. Any idea of what can be happening? Thanks in advance!

UPDATE: it seems to also turn blue when pressing the shift key in the keyboard too. It's not a custom keyboard.

UPDATE 2: this happens both in emulator and device.


回答1:


So... this old project had a library called UI7Kit into its Pods, which was causing this weird mess. I just had to delete the references to it into the Podfile (as it's not necessary anymore anyway), and reinstall Pods. I'm leaving this answer in case somebody has the same issue in the future with an old project. Thanks to everyone who tried to help!



来源:https://stackoverflow.com/questions/58207419/ios-13-update-broke-my-apps-keyboard-on-its-first-display

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!