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
Post a Comment