In PHP I would do something like this:
function changeBgColor($boxColor,$color)
{
echo '<div id="'. $boxColor .'">'. $color .'</div>';
}
changeBgColor("box1","red");
But I haven't found a way to do this in Objective-C
I want to write out some code in Objective-C and be able to call a method to execute that code.
e.g. execute this code. But I want to change the boxColor and redColor when I call the method
boxColor.backgroundColor = [UIColor redColor];