gpt4 book ai didi

ios - 单点触控 iOS 7.0.2 中的 UIFont

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:02:48 35 4
gpt4 key购买 nike

我刚刚将我的 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'

现在,我应该如何使用它?

最佳答案

nameTextView.Font = UIFont.FromName(UIFont.PreferredBody.Name, 10);

关于ios - 单点触控 iOS 7.0.2 中的 UIFont,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19701972/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com