【问题标题】:Is it possible to remove Core-plot rectangle box?是否可以删除核心图矩形框?
【发布时间】:2011-11-03 05:28:28
【问题描述】:

我正在使用 Core-plot 绘制垂直条形图。这样就可以删除它的边框矩形边框框。我想要一个简单的图表。欢迎任何建议或指导。

提前致谢, 纳文

【问题讨论】:

    标签: iphone ios core-plot


    【解决方案1】:

    1.如果你想为CPXYGraph使用主题,那就nil

    graph = [[CPXYGraph alloc] initWithFrame:CGRectZero];
    CPTheme *theme = [CPTheme themeNamed:kCPPlainWhiteTheme];
    [graph applyTheme:theme];
    
    graph.plotAreaFrame.borderLineStyle = nil;
    

    2.更快速简单的解决方法是:

    [graph applyTheme:nil];
    

    【讨论】:

      【解决方案2】:

      我没有足够的声誉来评论铍的答案,但我认为我应该。我浏览了 3 页类似的答案,终于找到了这个。

      之前的帖子都没有提到graph.plotAreaFrame.borderLineStyle = nil AFTER applyTheme的设置。在我的项目中,我采用了一些将applyTheme放在最后的示例代码,我不知道设置边框会被主题覆盖,并且一次又一次失败。

      【讨论】:

        猜你喜欢
        • 2015-01-19
        • 1970-01-01
        • 2012-10-30
        • 2017-07-02
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-07-20
        • 1970-01-01
        相关资源
        最近更新 更多