[TIL ObjC.003];

To set colors in an object's runtime attributes in Interface Builder

1. Create a category for CALayer

2. Add the following setter method and make it public

      - (void)setColorFromUIColor:(UIColor *)color {
          self.borderColor = color.CGColor;
      }

. In the object's runtime attributes add "layer.colorFromUIColor"

source