Tag: 核心情节

iOS Core将CPTAxisLabel与CPTPlotalignment

请看下面这张图片。 我有附件。 我的问题与CPTAxisLabel标签。 它们被放置在刻度线下,但是它们不会被放置在CPTPlot 。 如何添加左偏移量到这个标签? 我需要将我的标签放在CPTPlot对象的中间。 (更新:) -(void)configureGraph { NSInteger max = 0; for (NSNumber *number in self.values) { NSInteger num = [number integerValue]; if (num > max) { max = num; } } CPTGraph *graph = [[CPTXYGraph alloc] initWithFrame:self.bounds]; graph.plotAreaFrame.masksToBorder = NO; self.hostedGraph = graph; graph.paddingBottom = 80.0f; graph.paddingLeft = 0.0f; graph.paddingTop = […]