Inherits from NSObject
Declared in PrettyDrawing.h

Overview

This class contains a set of methods to perform common drawing tasks.

Tasks

Class Methods

drawGradient:fromColor:toColor:

Draws a gradient with the given colors into the given rect.

+ (void)drawGradient:(CGRect)rect fromColor:(UIColor *)from toColor:(UIColor *)to

Declared In

PrettyDrawing.h

drawGradient:rect:

Draws a gradient with the given gradient reference into the given rect.

+ (void)drawGradient:(CGGradientRef)gradient rect:(CGRect)rect

Declared In

PrettyDrawing.h

drawLineAtHeight:rect:color:width:

Draws a line at the given rect’s height, with the given color into the given rect.

+ (void)drawLineAtHeight:(float)height rect:(CGRect)rect color:(UIColor *)color width:(float)width

Declared In

PrettyDrawing.h

drawLineAtPosition:rect:color:

Draws a line in the given position, with the given color into the given rect.

+ (void)drawLineAtPosition:(LinePosition)position rect:(CGRect)rect color:(UIColor *)color

Discussion

position can be:

  • LinePositionTop: the rect’s min height.
  • LinePositionBottom: the rect’s max height.

Declared In

PrettyDrawing.h