public class UIColor extends NSObject implements NSSecureCoding
Modifier and Type | Method and Description |
---|---|
static UIColor |
blackColor()
Creates a UIColor object of black color..
|
static UIColor |
blueColor()
Creates a UIColor object of blue color.
|
static UIColor |
brownColor()
Creates a UIColor object of brown color.
|
CGColor |
CGColor()
Returns a CGColor.
|
static UIColor |
clearColor()
Returns a UIColor object with grayscale's value 0 and alpha value 0.
|
static UIColor |
colorWithCGColor(CGColor color)
Returns a UIColor object with the defined CGColor parameter.
|
static UIColor |
colorWithHueSaturationBrightnessAlpha(double h,
double s,
double b,
double a)
Returns a UIColor object with the given HSB and alpha values.
|
static UIColor |
colorWithPatternImage(UIImage patternImage)
Returns a UIColor object using the image parameter.
|
static UIColor |
colorWithRedGreenBlueAlpha(double red,
double green,
double blue,
double alpha)
Returns a UIColor object with the given RGB and alpha values.
|
static UIColor |
colorWithWhiteAlpha(double white,
double alpha)
Returns a UIColor object with the given values for opacity and alpha.
|
static UIColor |
cyanColor()
Creates a UIColor object of cyan color.
|
static UIColor |
darkGrayColor()
Creates a UIColor object of dark gray color.
|
static UIColor |
darkTextColor()
Returns a UIColor object used in order to display text on a light
background.
|
boolean |
equals(Object obj) |
static UIColor |
grayColor()
Creates a UIColor object of gray color.
|
static UIColor |
greenColor()
Creates a UIColor object of green color.
|
static UIColor |
groupTableViewBackgroundColor()
Returns a UIColor object used when the background is a grouped table.
|
int |
hashCode() |
static UIColor |
lightGrayColor()
Creates a UIColor object of light gray color.
|
static UIColor |
lightTextColor()
Returns a UIColor object used in order to display text on a dark
background.
|
static UIColor |
magentaColor()
Creates a UIColor object of magenta color.
|
static UIColor |
orangeColor()
Creates a UIColor object of orange color.
|
static UIColor |
purpleColor()
Creates a UIColor object of purple color.
|
static UIColor |
redColor()
Creates a UIColor object of rec color.
|
String |
toString() |
static UIColor |
viewFlipsideBackgroundColor()
Deprecated.
|
static UIColor |
whiteColor()
Creates a UIColor object of white color.
|
static UIColor |
yellowColor()
Creates a UIColor object of yellow color.
|
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
supportsSecureCoding
public static final UIColor blackColor()
public static final UIColor darkGrayColor()
public static final UIColor lightGrayColor()
public static final UIColor whiteColor()
public static final UIColor grayColor()
public static final UIColor redColor()
public static final UIColor greenColor()
public static final UIColor blueColor()
public static final UIColor cyanColor()
public static final UIColor yellowColor()
public static final UIColor magentaColor()
public static final UIColor orangeColor()
public static final UIColor purpleColor()
public static final UIColor brownColor()
public static final UIColor clearColor()
public static final UIColor lightTextColor()
public static final UIColor darkTextColor()
public static final UIColor groupTableViewBackgroundColor()
@Deprecated public static final UIColor viewFlipsideBackgroundColor()
public static UIColor colorWithWhiteAlpha(double white, double alpha)
white
- The grayscale of the UIColor object.alpha
- The alpha value of the UIColor object.public static UIColor colorWithRedGreenBlueAlpha(double red, double green, double blue, double alpha)
red
- The red value of RGBof the UIColor object.green
- The green value of RGB.blue
- The blue value of RGB of the UIColor object.alpha
- The alpha value of the UIColor object.public static UIColor colorWithHueSaturationBrightnessAlpha(double h, double s, double b, double a)
h
- The hue value of the UIColor object.s
- The saturation value of the UIColor object.b
- The brightness value of the UIColor object.a
- The alpha value of the UIColor object.public static UIColor colorWithPatternImage(UIImage patternImage)
patternImage
- The image parameter used for the creation of the
UIColor.public static UIColor colorWithCGColor(CGColor color)
color
- The CGColor parameter.public CGColor CGColor()
Copyright © 2020. All rights reserved.