SSGradientView Class Reference
| Inherits from | SSBorderedView : UIView |
| Declared in | SSGradientView.h |
Tasks
Drawing the Gradient
-
colorsAn array of
propertyUIColorobjects used to draw the gradient. If the value isnil, thebackgroundColorwill be drawn instead of a gradient. -
locationsAn optional array of
propertyNSNumberobjects defining the location of each gradient stop. -
directionThe direction of the gradient.
property
Deprecated Methods
-
topColorThe top gradient color. This method is deprecated.
property -
bottomColorThe bottom gradient color. This method is deprecated.
property -
gradientScaleThe scale of the gradient. This method is deprecated.
property
Properties
bottomColor
The bottom gradient color. This method is deprecated.
@property (nonatomic, retain) UIColor *bottomColorDiscussion
The default is nil.
Declared In
SSGradientView.hcolors
An array of UIColor objects used to draw the gradient. If the value is nil, the backgroundColor will be drawn
instead of a gradient.
@property (nonatomic, copy) NSArray *colorsDiscussion
The default is nil.
Declared In
SSGradientView.hdirection
The direction of the gradient.
@property (nonatomic, assign) SSGradientViewDirection directionDiscussion
The default is SSGradientViewDirectionVertical.
Declared In
SSGradientView.hgradientScale
The scale of the gradient. This method is deprecated.
@property (nonatomic, assign) CGFloat gradientScaleDiscussion
The default is 1.0.
Declared In
SSGradientView.hlocations
An optional array of NSNumber objects defining the location of each gradient stop.
@property (nonatomic, copy) NSArray *locationsDiscussion
The gradient stops are specified as values between 0 and 1. The values must be monotonically
increasing. If nil, the stops are spread uniformly across the range. Defaults to nil.
Declared In
SSGradientView.h