?
Solved

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

Posted on 2012-09-01
3
Medium Priority
?
774 Views
Last Modified: 2012-09-01
UITextfield how do I put text in it and when focused it goes away
0
Comment
Question by:charmingduck
  • 2
3 Comments
 
LVL 15

Expert Comment

by:Hamidreza Vakilian
ID: 38356947
in interface builder choose the uitextfield
from the right panel go to attributes section
enter your text in placeholder part
0
 

Author Comment

by:charmingduck
ID: 38357000
could you show me the code? I am new at this.
0
 
LVL 15

Accepted Solution

by:
Hamidreza Vakilian earned 820 total points
ID: 38357010
Sure:
myTextField.placeholder = @"Your Placeholdertext";

Open in new window

0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When Apple released Swift last year, the aim was to introduce a new programming language for Cocoa and Cocoa Touch that was fast, easy and effective, like the name connotes. Apple succeeded. Swift is designed to couple with Objective-C program…
There is a security feature on iOS devices that is nearly impenetrable when it has been activated.  This article will provide some possible solutions as well as necessary steps to take to ensure you do not end up with a locked device.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question