ios - Using CAGradientLayer for an angle / circle gradient -


how can use cagradientlayer efficiently draw gradient around circle / angles?

i made 1 underneath of project. uses bitmap context drawing cagradientlayer far more efficient.

unfortunately figure out how make linear gradients it.

gradient layers support linear gradients. however, if @ interface gradient layers, includes type property. right type defined kcagradientlayeraxial (linear).

the fact there type property suggests apple adding more types @ future date, , radial gradients seem like addition.

you might @ creating own custom subclass of cagradientlayer draws radial gradients linear. i've seen demo projects on net create custom calayer subclasses.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -