我正在尝试使用Core-Plot更改条形图中标签的默认位置.我正在使用这种方法:
-(CPTLayer *)dataLabelForPlot:(CPTPlot *)plot recordIndex:(NSUInteger)idx;
Run Code Online (Sandbox Code Playgroud)
我回来了:
return textLayer = [[CPTTextLayer alloc] initWithText:@"2222" style:textStyle];
Run Code Online (Sandbox Code Playgroud)
我得到这个结果:

但我想表现如下:

任何的想法?我试图在文档上找到答案,但我一直不可能.