title: Removing a CALayer at index 0
body: <p>I've added a gradient layer:</p>
  
  <pre><code>[theView.layer insertSublayer:gradient atIndex:0];
  </code></pre>
  
  <p>And later on in another method I want to remove this layer. I figured I should get the array of sublayers then get the sublayer at index 0 and call removeFromSuperlayer on it. Is this the correct way or if not can you do it?</p>
  
  <p>Cheers.</p>