how do I put text in the UITextfield like what you see in the screenshot attach in objective c?

UITextfield how do I put text in it and when focused it goes away
charmingduckAsked:
Who is Participating?
 
Hamidreza VakilianSenior iOS DeveloperCommented:
Sure:
myTextField.placeholder = @"Your Placeholdertext";

Open in new window

0
 
Hamidreza VakilianSenior iOS DeveloperCommented:
in interface builder choose the uitextfield
from the right panel go to attributes section
enter your text in placeholder part
0
 
charmingduckAuthor Commented:
could you show me the code? I am new at this.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.