title: IOS self.view.frame.width equals 0
body: <p>I am making a custom keyboard. In order to determine the orientation of some buttons I need to find the width of the keyboard. I do this by using:</p>
  
  <pre><code>self.view.frame.width
  </code></pre>
  
  <p>in my <code>viewDidLoad()</code> method.</p>
  
  <p>However, it returns 0.</p>