通过BezierPath绘制矩形的方法进行绘制
NSArray*array=@[@30,@30,@40];
for(int i=0;i<arr.count;i++){
w=self.bound.size.width/2*array.count-1;
x=i*2*w;
h=[array[i] doubleValue]/100*self.bounds.size.height;
y=self.bounds.size.height-h;
UIBezierPath*path=[UIBezierPath bezierPathWithRect:CGRectMake]
[[UIColor redColor]setFill];
[path fill]
}