Я хочу поставить линию со статическими координатами x, y, но я хочу изменить высоту в соответствии с некоторыми условиями
-(void)drawRect:(CGRect)rect
{
AppDelegate *delegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
CGRect customPath1 = CGRectMake(35, 183, 10, delegate.breakFastTotalamt);
CGRect customPath2 = CGRectMake(140, 183, 10, 100);
UIBezierPath *path1 = [UIBezierPath bezierPathWithRect:customPath1];
UIBezierPath *path2 = [UIBezierPath bezierPathWithRect:customPath2];
[[UIColor greenColor]set];
[path1 fill];
[path2 fill];
}