Inherits from UIView
Declared in TKGradientView.h
TKGradientView.m

Overview

This class implements UIView backed by a CAGradientLayer.

Tasks

Gradient Style Properties

Properties

colors

An array of UIColor objects defining the color of each gradient stop.

@property (nonatomic, strong) NSArray *colors

Declared In

TKGradientView.h

endPoint

The end point of the gradient when drawn in the layer’s coordinate space.

@property (nonatomic, assign) CGPoint endPoint

Declared In

TKGradientView.h

locations

An optional array of NSNumber objects defining the location of each gradient stop.

@property (nonatomic, strong) NSArray *locations

Declared In

TKGradientView.h

startPoint

The start point corresponds to the first stop of the gradient. The point is defined in the unit coordinate space and is then mapped to the layer’s bounds rectangle when drawn. Default value is (0.5,0.0).

@property (nonatomic, assign) CGPoint startPoint

Declared In

TKGradientView.h

type

Style of gradient drawn by the layer.

@property (nonatomic, copy) NSString *type

Declared In

TKGradientView.h