1
以下是在圖中繪製垂直線的代碼。如何從起點到終點設置動畫線
-(void)drawRect:(CGRect)rect
{
AppDelegate *delegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
UIBezierPath *breakFastValuePath = [UIBezierPath bezierPath];
[breakFastValuePath moveToPoint:CGPointMake(89, 288)];
[breakFastValuePath addLineToPoint:CGPointMake(89,288-delegate.breakFastTotalamt)];
[breakFastValuePath closePath];
[[UIColor greenColor] setStroke];
breakFastValuePath.lineWidth = 10;
[breakFastValuePath stroke];
}
如何使線從起點到終點的文圖動畫加載?
你爲什麼不動畫上線畫出 – 2012-03-01 05:20:48
什麼ü意思有何看法?我正在放圖。所以當圖形出現時,線條應該從起點移動到終點 – Shreedhar 2012-03-01 05:23:05