
using(UIFont Font=StyleHelper.Fonts.HelveticaNeueLTDMC_18using(UIcolor color=UIcolor.Clear.FromHex(0xc7c7c7)){ color.SetFill (); base.DrawString (this.Placeholder,rect,Font);} 我使用上面的代码,但它无法正常工作.
解决方法 如 MonoTouch.UIKit.UITextField.AttributedPlaceholder的iOS-api文档所示,您可以清楚地看到:myLogin.Attributedplaceholder = new NSAttributedString ( "Enter your credentials",Font: UIFont.Fromname ("HoeflerText-Regular",24.0f),foregroundcolor: UIcolor.Red,strokeWIDth: 4 ); 总结 以上是内存溢出为你收集整理的如何在Xamarin for iOS7中更改UITextField Placeholder的颜色和字体全部内容,希望文章能够帮你解决如何在Xamarin for iOS7中更改UITextField Placeholder的颜色和字体所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)