Skip to main content
Kelvas blog
  1. Posts/

UITextField bug 😱

·156 words·1 min
Image

You may have already had it but there is a bug on UITextField only on iOS emulators (iPhone and iPad). It may happen that when you select a UITextField your application freezes like the picture below:

Image

Now that your application looks like this, you cannot do anything and you have to restart your application.

via GIPHY

This is a bug known by the Apple team and originally seemed to affect only the iOS 13 version. But I can confirm that I also encountered it on emulators with version 14.

But I reassure you, nothing comes from your code but from the emulator itself. So even if you are not anative developer, you may encounter this problem, as here for NativeScript :

![https://github.com/NativeScript/NativeScript/issues/7919#issue-504001839]

But then how to solve it?

Well, it’s very simple! Just restart your emulator.I hope this helped you and that unlike me, you won’t spend 2 hours looking for a solution in your code.