Iphone uitextfield - empty spots in focus (just like that?)

I have a simple question: I have a UITextField (made from IB) and I would like it to not be empty (become "") when clicked when it gets focus. I can not find the setting, what / where is it?

+3
source share
1 answer

In IB, check the box next to "Clear when editing."
Or you can set it in the code setting clearsOnBeginEditingfor the corresponding value.

+8
source

Source: https://habr.com/ru/post/1729880/


All Articles