Creates and returns a color object using the specified opacity and grayscale values.
+ (UIColor *)colorWithWhite:(CGFloat)white alpha:(CGFloat)alpha
Parameters of [UIColor colorWithWhite alpha]
white
The grayscale value of the color object, specified as a value from 0.0 to 1.0.
alpha
The opacity value of the color object, specified as a value from 0.0 to 1.0.
Return Value of [UIColor colorWithWhite alpha]
The color object. The color information represented by this object is in the device gray colorspace.
Discussion
Values below 0.0 are interpreted as 0.0, and values above 1.0 are interpreted as 1.0.
Example of [UIColor colorWithWhite alpha]
{
//...
UIColor *colorForSortOff = [UIColor colorWithWhite:0.5f alpha:1.0f];
//...
}