title: How to get dimensions of a custom UIView added via storyboard in initWithCoder:?
body: <p>I have a custom UIView subclass that adds a subview programatically during initialisation.  I'm wanting this subview to be the same width as the custom UIView.</p>
  
  <p>My code works <em>fine</em> if I <em>programatically</em> add the custom UIView.  However, when the UIView is initialised via the <em>StoryBoard</em>, I cannot obtain the custom UIView's width.</p>
  
  <pre><code>// Init programatically
  - (id)initWithFrame:(CGRect)frame
  {
      self = [super initWithFrame:frame];
      if (self) {
          NSLog (@"view: %f", self.frame.size.width);   //WILL return width
          NSLog (@"view: %f", self.bounds.size.width);  //WILL return width
      }
      return self;
  }
  
  // Init from storyboard
  - (id)initWithCoder:(NSCoder *)aDecoder {
      self = [super initWithCoder:aDecoder];
      if (self) {
  
          NSLog (@"view: %f", self.frame.size.width);   //Returns 0
          NSLog (@"view: %f", self.bounds.size.width);  //Returns 0
      }
      return self;
  }
  </code></pre>
  
  <p>When initWithCoder: is run by StoryBoard, the UIView's frame and bounds are all returned as 0.
  Is there any way of accessing the UIView's dimensions <em>within</em> initWithCoder??  Or, at least access the dimensions <em>before</em> drawRect: is called?</p>
  
  <p>Thanks.</p>