How to set placeholder in uitextfield programmatically?

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
UITextfield Background Color
how to set class path
Example code of adding placeholder in UItextFeild
how to set the values in jsp
uitextfield append text
how to set background image
How to set NSZombieEnabled iPhone
UINavigationController how to set title
uitextfield hide keyboard on return
How to set target to videos??
how set data in a dialog
ModuleNotFoundError: No module named 'placeholder'
how to set the value of textfield constant
HOW TO DISPLAY 2 SET OF CONTROLS
uitextfield disable keyboard
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 '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 to add a columns with a button set to a Jtable built with database result set
How to set CLASSPATH in Java?
How to set heap memory in cassandra on docker
ModuleNotFoundError: No module named 'cmsplugin-template-placeholder'

Ads