Oleg Anghelov

adding views to corresponding arrays

... ... @@ -80,6 +80,7 @@
PNChartLabel * label = [[PNChartLabel alloc] initWithFrame:CGRectMake((index * _xLabelWidth + chartMargin), self.frame.size.height - 30.0, _xLabelWidth, 20.0)];
[label setTextAlignment:NSTextAlignmentCenter];
label.text = labelText;
[_labels addObject:label];
[self addSubview:label];
}
}
... ... @@ -110,6 +111,7 @@
bar.backgroundColor = _barBackgroundColor;
bar.barColor = [self barColorAtIndex:index];
bar.grade = grade;
[_bars addObject:bar];
[self addSubview:bar];
index += 1;
... ...