Instance Property


The number of color stops associated with the gradient.


@property(readonly) NSInteger numberOfColorStops;


Gradients must have at least two color stops: one defining the location of the start color and one defining the location of the end color. Gradients may have additional color stops located at different transition points in between the start and end stops.

See Also

Getting Gradient Properties


The color space of the colors associated with the gradient.

- getColor:location:atIndex:

Returns information about the color stop at the specified index in the receiver’s color array.

- interpolatedColorAtLocation:

Returns the color of the rendered gradient at the specified relative location.