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
how to set background image
How to set NSZombieEnabled iPhone
UINavigationController how to set title
UITextfield Background Color
How to set target to videos??
how set data in a dialog
Example code of adding placeholder in UItextFeild
how to set the value of textfield constant
HOW TO DISPLAY 2 SET OF CONTROLS
uitextfield append text
how to set time in jsp page
how to set size of button,textfield.
How to set Marathi font to Label??
uitextfield hide keyboard on return
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?
How set the height of Thumb in Vertical scrollbar..?
how to set fetch size for jdbc odbc driver
How to set pdf background color.
ModuleNotFoundError: No module named 'django-placeholder'
ModuleNotFoundError: No module named 'js.jquery_placeholder'
ModuleNotFoundError: No module named 'placeholder-pics'
ModuleNotFoundError: No module named 'tgapp-placeholder'

Ads