SEssentialsView Class Reference

Inherits from UIView
Declared in SEssentialsView.h
Availability
Related samples

Overview

SEssentialsView is a subclass of UIView which provides shadowing, shine and a textured background.

By default, all of these properties are disabled. Users can use the setter methods to turn on shine, shadow or texturing, or to change the background color of the view.

Properties

bottomShadowLayer

Applies a shadow to the top of the view. By default, this shadow is disabled.

@property (nonatomic, retain) CAGradientLayer *bottomShadowLayer

Declared In

SEssentialsView.h

chiselLayer

This layer adds a chisel to the bottom of the view. By default, this effect is disabled.

@property (nonatomic, retain) CAGradientLayer *chiselLayer

Declared In

SEssentialsView.h

chiselPrimaryTintColor

The main color of the chisel. Defaults to Black.

@property (nonatomic, retain) UIColor *chiselPrimaryTintColor

Declared In

SEssentialsView.h

chiselSecondaryTintColor

The complementary color of the chisel. Defaults to white.

@property (nonatomic, retain) UIColor *chiselSecondaryTintColor

Declared In

SEssentialsView.h

leftShadowLayer

Applies a shadow to the left hand side of the view. By default, this shadow is disabled.

@property (nonatomic, retain) CAGradientLayer *leftShadowLayer

Declared In

SEssentialsView.h

rightShadowLayer

Applies a shadow to the right hand side of the view. By default, this shadow is disabled.

@property (nonatomic, retain) CAGradientLayer *rightShadowLayer

Declared In

SEssentialsView.h

shadowDepth

The depth of the drop shadow. Defaults to 8.

@property (nonatomic, assign) CGFloat shadowDepth

Declared In

SEssentialsView.h

shadowTintColor

The color of the shadow layers. Defaults to Black.

@property (nonatomic, retain) UIColor *shadowTintColor

Declared In

SEssentialsView.h

shineAlpha

Sets how strongly the shine layer on the view is shown over the view. Its maximum value is 1, and its minimum value is 0. It defaults to 0.4.

@property (nonatomic, assign) CGFloat shineAlpha

Declared In

SEssentialsView.h

shineLayer

This layer adds a shine to the top of the view. By default, this effect is disabled.

@property (nonatomic, retain) CAGradientLayer *shineLayer

Declared In

SEssentialsView.h

shineTintColor

The tint color of the shine layer. Defaults to White.

@property (nonatomic, retain) UIColor *shineTintColor

Discussion

The alpha value will be overridden by shineAlpha.

Declared In

SEssentialsView.h

texture

The background texture of the view.

@property (nonatomic, retain) UIColor *texture

Declared In

SEssentialsView.h

textureLayer

The texture layer within the view. By default, no texture is applied.

@property (nonatomic, retain) CALayer *textureLayer

Declared In

SEssentialsView.h

tintColor

The background color of the view.

@property (nonatomic, retain) UIColor *tintColor

Declared In

SEssentialsView.h

topShadowLayer

Applies a shadow to the bottom of the view. By default, this shadow is disabled.

@property (nonatomic, retain) CAGradientLayer *topShadowLayer

Declared In

SEssentialsView.h

Instance Methods

addChisel

Applies a chiseled line to the bottom of the view.

- (void)addChisel

Declared In

SEssentialsView.h

addDecoration

Applies a shine to the top of the view and a chiseled line to the bottom of the view.

- (void)addDecoration

Declared In

SEssentialsView.h

addShadowBottom

Applies a shadow to the bottom of the view.

- (void)addShadowBottom

Declared In

SEssentialsView.h

addShadowLeft

Applies a shadow to the left hand side of the view.

- (void)addShadowLeft

Declared In

SEssentialsView.h

addShadowRight

Applies a shadow to the right hand side of the view.

- (void)addShadowRight

Declared In

SEssentialsView.h

addShadowTop

Applies a shadow to the top of the view.

- (void)addShadowTop

Declared In

SEssentialsView.h

addShine

Applies a shine to the top of the view.

- (void)addShine

Declared In

SEssentialsView.h

configureShineLayerWithColors:locations:

Configures the shine layer on the view. You pass it a set of locations in the view at which colors should be applied, and a set of colors to be applied in those locations. The shine layer renders gradients between these locations.

- (void)configureShineLayerWithColors:(NSArray *)colors locations:(NSArray *)locations

Parameters

colors

The colors to be applied must be specified as an array of UIColors.

locations

The locations where the colors will be applied. Each object in the array should be a NSNumber, with a value between 0 and 1.

Declared In

SEssentialsView.h