How to set placeholder in uitextfield programmatically?

Ads
 

How to set placeholder in uitextfield programmatically?

Can any one tell me about the example code for setting the placeholder in a UITextField programatically?

Thanks

View Answers

March 22, 2015 at 11:31 AM

HI,

Its easy. Use the following code:

mytext.placeholder = @"Enter User Name";

Thanks

Ads









Related Tutorials/Questions & Answers:
How to set placeholder in uitextfield programmatically?
UITextField Background Image
Advertisements
UITextField Programmatically iPhone
how to set class path
how to set the values in jsp
UITextfield Background Color
how to set background image
How to set NSZombieEnabled iPhone
UINavigationController how to set title
Example code of adding placeholder in UItextFeild
How to set target to videos??
uitextfield append text
how set data in a dialog
HOW TO DISPLAY 2 SET OF CONTROLS
how to set the value of textfield constant
uitextfield hide keyboard on return
how to set time in jsp page
how to set size of button,textfield.
How to set Marathi font to Label??
ModuleNotFoundError: No module named 'placeholder'
uitextfield disable keyboard
How to add a columns with a button set to a Jtable built with database result set
How to set heap memory in cassandra on docker
How to set CLASSPATH in Java?
ModuleNotFoundError: No module named 'django-placeholder'
ModuleNotFoundError: No module named 'js.jquery_placeholder'
ModuleNotFoundError: No module named 'js.jquery_placeholder'
ModuleNotFoundError: No module named 'placeholder-pics'
ModuleNotFoundError: No module named 'python-placeholder'
ModuleNotFoundError: No module named 'tgapp-placeholder'
How set the height of Thumb in Vertical scrollbar..?

Ads