Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 核心情节legendTitleForBarPlot永远不会被调用(bug?)_Objective C_Ios_Core Plot - Fatal编程技术网

Objective c 核心情节legendTitleForBarPlot永远不会被调用(bug?)

Objective c 核心情节legendTitleForBarPlot永远不会被调用(bug?),objective-c,ios,core-plot,Objective C,Ios,Core Plot,我希望提供自定义文本,而不是将绘图标识符作为图例标签。我的绘图标识符不适合用作标签,例如“#OpMarg”,我想将其替换为“营业利润” 我已经实施了这些方法 -(NSString *)legendTitleForBarPlot:(CPTBarPlot *)barPlot recordIndex:(NSUInteger)index 及 但是,legendTitleForBarPlot从未被调用 我的实现中有什么错误 如何覆盖基本图例标签并为每个标签提供自定义文本?试试看 -(NSString *

我希望提供自定义文本,而不是将绘图标识符作为图例标签。我的绘图标识符不适合用作标签,例如“#OpMarg”,我想将其替换为“营业利润”

我已经实施了这些方法

-(NSString *)legendTitleForBarPlot:(CPTBarPlot *)barPlot recordIndex:(NSUInteger)index

但是,
legendTitleForBarPlot
从未被调用

我的实现中有什么错误

如何覆盖基本图例标签并为每个标签提供自定义文本?

试试看

-(NSString *)legendTitleForBarPlot:(CPTBarPlot *)barPlot recordIndex:(NSUInteger)index
“似乎有点错误=)
我只是胡乱猜测。

嗨,塞巴斯蒂安,我的问题中出现了“只因为格式不好(请为拼写错误道歉)。但是,在我的代码中,不存在。的可能重复项
-(NSString *)legendTitleForBarPlot:(CPTBarPlot *)barPlot recordIndex:(NSUInteger)index