Method should be something like this,
-(void)setColor : (UIColor *)myColor{
myView.backgroundColor = myColor;
someView.layer.borderColor = myColor.CGColor
//etc
}
Call this method like,
[sel setColor : [UIColor redColor]]; //or whatever color you want to set
Hope this will help. 🙂
8
solved Objective C Send Color to Method [closed]