8

UIBezierPath両端でフェードアウトするa を描画しようとしています- alpha0から1に戻り0ます。私は基本的に、 UIBezierPath 内からグラデーションdrawRectを描画できるようにしたいと考えています。

編集:これが私が達成しようとしている効果です:

ここに画像の説明を入力

4

1 に答える 1

1

What about using -strokeWithBlendMode:alpha:?

In combination with some sort of loop that keeps incrementing/decrementing the alpha value until you reach the 1 (and the increment determines the length of the "faded" segment) should work.

See here

于 2013-02-14T16:16:36.210 に答える