我只是将我的montouch更新为xamarin.iOS 7.0.2。在此之前,我的项目中有以下代码:
nameTextView .Font = new UIFont ().WithSize (10);但它现在不起作用。
我面临这样的错误:
Error CS0619: `MonoTouch.UIKit.UIFont.UIFont()' is obsolete: `This constructor does not return a valid, default, instance'现在,我该怎么用这个?
发布于 2013-10-31 09:41:09
nameTextView.Font = UIFont.FromName(UIFont.PreferredBody.Name, 10);发布于 2013-10-31 08:58:04
http://www.raywenderlich.com/50151/text-kit-tutorial
本教程链接为定制的文本工具包property.Check,这可能是它的帮助充分。
preferredFontForTextStyle:UIFontTextStyleBody;self.textView.font = UIFont self.textView.font = UIFont self.textView.font
在iOS 7中,语法发生了变化,类似于HTML。
https://stackoverflow.com/questions/19701972
复制相似问题