не работает?
PCHalfPieChart *pieChart1 = [[PCHalfPieChart alloc] initWithFrame:CGRectMake(10, 10, 50, 50)];
[self.view addSubview:pieChart1];
// adding dataset1 to pieChart1
PCHalfPieChart *pieChart2 = [[PCHalfPieChart alloc] initWithFrame:CGRectMake(70, 10, 50, 50)];
[self.view addSubview:pieChart2];
// adding dataset2 to pieChart2
Или вот так:
PCLineChartView * lineChart;
// you should find a way to define your x, y, width and height correctly.
// I have not enough information about your project to find a solution
// I admit that there is 4 var called x, y, width and height
for (int i=0; i < numberOfChart; i++) {
lineChart = [[PCLineChartView alloc] initWithFrame:CGRectMake(x, y, width, height)];
// Add some data
// it can be based on the index to define which data goes to which chart
// ...
[self.view addSubview: lineChart];
[lineChart release];
// Changing values of x, y, width and height
// should come here
}