I'm trying to input the arguments for CGContextSetRGBFillColor
using a data type. For example:
NSString *colorcode = ctx, 0, 1, 0, 0;
CGContextSetRGBFillColor(colorcode);
But I get an error saying that I have too few arguments.
I want to change the arguments (ctx, 0, 1, 0, 1 )
sent to CGContextSetRGBFillColor
depending on the users actions.
I want to input the argument for CGContextSetRGBFillColor
using a data type because the values of it is set in a separate view controller. Or can I directly input the arguments to CGContextSetRGBFillColor
and then bring it over to the other view controller to use it?