title: how to get keyboard location in ios 8 & add DONE button on numberPad
body: <p>I am using  below code to get the keyboard location from view &amp; add DONE button on it.But in ios 8 it is not able to get keyboard location &amp; hence not add DONE button.</p>
  
  <pre><code>UIWindow *tempWindow = [[[UIApplication sharedApplication] windows] objectAtIndex:1];
  
  UIView *keyboard;
  
  for (int i = 0; i &lt; [tempWindow.subviews count]; i++)
  {
      keyboard = [tempWindow.subviews objectAtIndex:i];
      // keyboard view found; add the custom button to it
  
      if ([[keyboard description] hasPrefix:@"&lt;UIPeripheralHostView"] == YES)
      {
          [keyboard addSubview:doneButton];
      }
  }
  </code></pre>