core graphics - Rendering a gradient in a UIBezierPath -


how 1 render gradient inside uibezierpath , possible store state bezierpath faster re-rendering in drawrect?

i render bezierpaths inside drawrect cannot add gradient.

when call method cgcontextdrawlineargradient (ctx, gradient, gradientstartpoint, gradientendpoint, 0); dont have endpoint.

i tried using bezierpath.currentpoint dont expected results.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -