title: How to detect external keyboard plugged or not for iPad?
body: <p>I want to programmatically detect whether an external keyboard connected or virtual keyboard is visible on given view. How can I do it?</p>
  
  <p>I could do it using Keyboard notifications but I need a different way to do it. Is there any other way to do it? </p>