Instance Property

numberOfColorStops

The number of color stops associated with the gradient.

Declaration

@property(readonly) NSInteger numberOfColorStops;

Discussion

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

colorSpace

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.