title: How do I have my UIView use my custom CALayer as its backing layer?
body: <p>I am overriding UIView's layerClass method as recommended in apple's documentation like this:</p>
  
  <pre><code>+ (Class)layerClass {
       return [ViewLayerBase class];
  }
  </code></pre>
  
  <p>In my viewLayerBase custom class I have an init Method implemented like this:</p>
  
  <pre><code>- (id)initWithRect:(CGRect)rect {
       if ((self = [super init])) {
           NSLog(@"I got called");
       }
       return self;
  }
  </code></pre>
  
  <p>This method is clearly not being called by my UIView subclass.  Given that the layer property of UIView is read-only and I cannot do <code>myView.layer = [ViewLayerBase alloc] initWithRect...</code> how do I get UIView to instantiate my custom CALayer subclass?</p>