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









Related Tutorials/Questions & Answers:
Advertisements