gpt4 book ai didi

ios4 - core-plot CPTextStyle fontName 只读

转载 作者:行者123 更新时间:2023-12-01 09:16:44 24 4
gpt4 key购买 nike

我正在使用 core-plot,我想设置轴标题的字体系列和大小,所以我所做的是:

CPTextStyle *axisTitleTextStyle = [CPTextStyle textStyle];
axisTitleTextStyle.fontName = @"Helvetica Bold";
axisTitleTextStyle.fontSize = 14.0;

但是当我编译时出现错误:

error: object cannot be set - either readonly property or no setter found

如何设置字体?

谢谢,最大

最佳答案

CPTextStyle 不久前发生了变化。现在它是不可变的。有一个名为 CPMutableTextStyle 的可变变体。

关于ios4 - core-plot CPTextStyle fontName 只读,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5857536/

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