Inherits from SSBorderedView : UIView
Declared in SSGradientView.h

Overview

Simple UIView wrapper for CGGradient.

Tasks

Drawing the Gradient

  •   colors

    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
  •   locations

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

    property
  •   direction

    The direction of the gradient.

    property

Deprecated Methods

  •   topColor

    The top gradient color. This method is deprecated.

    property
  •   bottomColor

    The bottom gradient color. This method is deprecated.

    property
  •   gradientScale

    The scale of the gradient. This method is deprecated.

    property

Properties

bottomColor

The bottom gradient color. This method is deprecated.

@property (nonatomic, retain) UIColor *bottomColor

Discussion

The default is nil.

Declared In

SSGradientView.h

colors

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 *colors

Discussion

The default is nil.

Declared In

SSGradientView.h

direction

The direction of the gradient.

@property (nonatomic, assign) SSGradientViewDirection direction

Discussion

The default is SSGradientViewDirectionVertical.

Declared In

SSGradientView.h

gradientScale

The scale of the gradient. This method is deprecated.

@property (nonatomic, assign) CGFloat gradientScale

Discussion

The default is 1.0.

Declared In

SSGradientView.h

locations

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

@property (nonatomic, copy) NSArray *locations

Discussion

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

topColor

The top gradient color. This method is deprecated.

@property (nonatomic, retain) UIColor *topColor

Discussion

The default is nil.

Declared In

SSGradientView.h