// Convert uicolor to RGB Value
-(Nsmutablearray *) changeuicolortorgb :( uicolor *) color
{
Nsmutablearray * rgbstrvaluearr = [nsmutablearray
Alloc] init];
Nsstring * rgbstr = nil;
// Obtain the RGB value description
Nsstring * rgbvalue = [nsstring
Stringwithformat: @ "% @", color];
// Separate RGB value descriptions into strings
Nsarray * rgbarr = [rgbvalue
Componentsseparatedbystring: @ ""];
// Obtain the red value
Int r = [[rgbarr objectatindex: 0]
Intvalue] * 255;
Rgbstr = [nsstring stringwithformat: @ "% d", R];
[Rgbstrvaluearr addobject: rgbstr];
// Obtain the green value
Int G = [[rgbarr objectatindex: 1]
Intvalue] * 255;
Rgbstr = [nsstring stringwithformat: @ "% d", G];
[Rgbstrvaluearr addobject: rgbstr];
// Obtain the blue value
Int B = [[rgbarr objectatindex: 2]
Intvalue] * 255;
Rgbstr = [nsstring stringwithformat: @ "% d", B];
[Rgbstrvaluearr addobject: rgbstr];
// Returns the array that saves the RGB value.
Return [rgbstrvaluearr
Autorelease];
}