title: CALayer borderColor Error
body: <p>I have very strange error here is my snippet of code:</p>
  
  <pre><code>- (void) drawRect:(CGRect)rect{
  CGRect fr = rect;
  
  fr.size.width = fr.size.width-2*rad;
  fr.size.height = fr.size.height-1;
  fr.origin.x = rad;
  
  // draw round corners layer
  bglayer = [CALayer layer];
  bglayer.borderWidth = 1;
  bglayer.borderColor = [UIColor blackColor].CGColor; // Here I receive Error: Expected identifier before '[' token
  bglayer.backgroundColor = bgColor.CGColor;
  bglayer.cornerRadius = rad;
  bglayer.frame = fr;
  bglayer.zPosition = -5; // important, otherwise delete button does not fire / is covered
  [self.layer addSublayer:bglayer];
  ......
  .....
  }
  </code></pre>
  
  <p>in line where: <code>bglayer.borderColor = [UIColor blackColor].CGColor;</code> 
  I receive this error: </p>
  
  <blockquote>
    <p>Expected identifier before '[' token</p>
  </blockquote>
  
  <p>Can somebody help me please :)</p>