title: How to detect Orientation Change in Custom Keyboard Extension in iOS 8?
body: <p>In Custom Keyboard Extension , we can't use </p>
  
  <pre><code>`didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation` 
  </code></pre>
  
  <p>and <code>sharedApplication</code>.</p>
  
  <p>I need to detect portrait or landscape in keyboard when rotate.</p>
  
  <p>How can i detect when orientation change in Custom Keyboard extension?</p>