using(UIFont font=StyleHelper.Fonts.HelveticaNeueLTDMC_18
using(UIColor color=UIColor.Clear.FromHex(0xc7c7c7))
{
color.SetFill ();
base.DrawString (this.Placeholder, rect, font);
}
I am using above code but it is not working.
As seen on the iOS-API documentation for MonoTouch.UIKit.UITextField.AttributedPlaceholder, you can clearly see:
myLogin.AttributedPlaceholder = new NSAttributedString (
"Enter your credentials",
font: UIFont.FromName ("HoeflerText-Regular", 24.0f),
foregroundColor: UIColor.Red,
strokeWidth: 4
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With