Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 core plot 。当我尝试自定义 CPTTextStyle.color 的值时,我发现它是只读的!谁能告诉我如何更改颜色属性的值?
使用CPTMutableTextStyle. Core Plot 遵循一些类的可变和不可变版本的通用 Cocoa 约定。线型、阴影和绘图范围也遵循这种模式。
CPTMutableTextStyle