title: cannot update view.layer.frame in viewDidLoad?
body: <p>I am trying to execute following code in viewDidLoad method of my single view controller project:</p>
  
  <pre><code>self.view.layer.frame = CGRectInset(self.view.layer.frame, 20, 20); 
  </code></pre>
  
  <p>But it does not give the desired inset. However other UI changes i make in the same method do work e.g </p>
  
  <pre><code>self.view.layer.backgroundColor = [UIColor orangeColor].CGColor;
  </code></pre>
  
  <p>Above line of code does work and background is change to orange but the frame does not.</p>
  
  <p>The inset works only if I place the line of code in viewDidAppear. I would like to understand the key reason for this behavior if anyone can explain. Thank you in advance.</p>