FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
UIColor(Creations) Category Reference

UIColor convinient creation methods. More...

#import <UIColor.h>

Instance Methods

(UIColor *) - initWith8bitRed:green:blue:alpha:
 Initialize color from 32bit color component. More...
 
(UIColor *) - initWith8bitWhite:alpha:
 Initialize color from 8bit white component. More...
 
(UIColor *) - initWith32bitColor:
 Initialize color from 32bit color packed value. More...
 

Class Methods

(UIColor *) + colorWith8bitRed:green:blue:alpha:
 Creates and returns color from 32bit color component. More...
 
(UIColor *) + colorWith8bitWhite:alpha:
 Creates and returns color from 8bit white component. More...
 
(UIColor *) + colorWith32bitColor:
 Creates and returns color from 32bit color packed value. More...
 

Detailed Description

UIColor convinient creation methods.

Method Documentation

+ (UIColor *) colorWith32bitColor: (UInt32)  value

Creates and returns color from 32bit color packed value.

See also
- initWith32bitColor:
+ (UIColor *) colorWith8bitRed: (UInt8)  red
green: (UInt8)  green
blue: (UInt8)  blue
alpha: (UInt8)  alpha 

Creates and returns color from 32bit color component.

See also
- initWith8bitRed:green:blue:alpha:
+ (UIColor *) colorWith8bitWhite: (UInt8)  white
alpha: (UInt8)  alpha 

Creates and returns color from 8bit white component.

See also
- initWith8bitWhite:alpha:
- (UIColor *) initWith32bitColor: (UInt32)  value

Initialize color from 32bit color packed value.

Parameters
valuePacked 32bit color value.
- (UIColor *) initWith8bitRed: (UInt8)  red
green: (UInt8)  green
blue: (UInt8)  blue
alpha: (UInt8)  alpha 

Initialize color from 32bit color component.

Parameters
redValue from 0 to 255
greenValue from 0 to 255
blueValue from 0 to 255
alphaValue from 0 to 255
- (UIColor *) initWith8bitWhite: (UInt8)  white
alpha: (UInt8)  alpha 

Initialize color from 8bit white component.

Parameters
whiteValue from 0 to 255
alphaValue from 0 to 255

The documentation for this category was generated from the following file: