title: changing a UIView's layer class
body: <p>According to the Apple UIView Programming Guide, you can only change a uiview's CA layer using the <code>layerClass</code> method, which you must override to return a different class during the view's initialization, and that this is the only way this can be done:</p>
  
  <blockquote>
    <p>The type of layer associated with a view cannot be changed after the view is created. Therefore, each view uses the layerClass class method to specify the class of its layer object. </p>
  </blockquote>
  
  <p>However, I've seen app tutorials that directly assign the view's layer to another created layer, and I always assumed this was essentially replacing the layer with another layer class and worked fine.</p>
  
  <p>Are these two methods going to yield the same results? Is it bad to use the second method?</p>