我刚刚将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'
现在,我该如何使用这个?