TKGradientView Class Reference
Inherits from | UIView |
Declared in | TKGradientView.h |
Tasks
Gradient Style Properties
-
colors
An array of
propertyUIColor
objects defining the color of each gradient stop. -
locations
An optional array of NSNumber objects defining the location of each gradient stop.
property -
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 -
endPoint
The end point of the gradient when drawn in the layer’s coordinate space.
property -
type
Style of gradient drawn by the layer.
property
Properties
colors
An array of UIColor
objects defining the color of each gradient stop.
@property (nonatomic, strong) NSArray *colors
Discussion
An array of UIColor
objects defining the color of each gradient stop.
Declared In
TKGradientView.h
endPoint
The end point of the gradient when drawn in the layer’s coordinate space.
@property (nonatomic, assign) CGPoint endPoint
Discussion
The end point of the gradient when drawn in the layer’s coordinate space.
Declared In
TKGradientView.h
locations
An optional array of NSNumber objects defining the location of each gradient stop.
@property (nonatomic, strong) NSArray *locations
Discussion
An optional array of NSNumber objects defining the location of each gradient stop.
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
Discussion
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).
Declared In
TKGradientView.h