Inherits from NSObject
Conforms to NSCopying
Declared in SGridLineStyle.h
Availability
Related samples

Overview

An object of type SGridLineStyle represents the style that is to be a applied to a gridline in a ShinobiGrid object.

Tasks

Creation

  • + style

    Creates and returns an object which represents the style of a gridline with default properties.

  • + styleWithWidth:withColor:

    Creates and returns an object which represents the style of a gridline with the supplied properties

Initialization

  • – init

    Initializes a newly allocated object that represents the style of a gridline with default values.

  • – initWithWidth:withColor:

    Initializes a newly allocated object that represents the style of a gridline with the supplied properties.

Styling

  •   width

    The width in points of the gridline that has this style applied to it. The minimum width that can be displayed is 1.0f

    property
  •   color

    The color of the gridline that has this style applied to it.

    property

Properties

color

The color of the gridline that has this style applied to it.

@property (nonatomic, retain) UIColor *color

Declared In

SGridLineStyle.h

width

The width in points of the gridline that has this style applied to it. The minimum width that can be displayed is 1.0f

@property (nonatomic, assign) CGFloat width

Declared In

SGridLineStyle.h

Class Methods

style

Creates and returns an object which represents the style of a gridline with default properties.

+ (id)style

Discussion

Default values are a width of 3.f and a black color.

Declared In

SGridLineStyle.h

styleWithWidth:withColor:

Creates and returns an object which represents the style of a gridline with the supplied properties

+ (id)styleWithWidth:(CGFloat)width withColor:(UIColor *)color

Parameters

width

The width in points of the gridline

color

The color of the gridline

Declared In

SGridLineStyle.h

Instance Methods

init

Initializes a newly allocated object that represents the style of a gridline with default values.

- (id)init

Discussion

Default values are a width of 3.f and a black color.

Declared In

SGridLineStyle.h

initWithWidth:withColor:

Initializes a newly allocated object that represents the style of a gridline with the supplied properties.

- (id)initWithWidth:(CGFloat)width withColor:(UIColor *)color

Parameters

width

The width in points of the gridline

color

The color of the gridline

Declared In

SGridLineStyle.h