title: Difference Between [[CAShapeLayer alloc] init] and [CAShapeLayer layer]
body: <p>I noticed that most people, when initializing a <code>CAShapeLayer</code> use:</p>
  
  <pre><code>CAShapeLayer *shapeLayer = [CAShapeLayer layer];
  </code></pre>
  
  <p>Rather than using the initializer:</p>
  
  <pre><code>CAShapeLayer *shapeLayer = [[CAShapeLayer alloc] init];
  </code></pre>
  
  <p>I'm wondering is there any particular difference in using either one of these, or which one is usually better?</p>