title: UIPopoverController gesture handling in UISplitViewController for iOS 5.1 and below
body: <p>I've (along with many others) have noticed that Apple changed the appearance of the popover controller to use a "slider" window rather than the usual "popover" tableview that I've used.  While I'm okay with the new appearance, like others I'm having issues with the swipe gesture that is introduced:</p>
  
  <p><a href="https://stackoverflow.com/questions/9691523/ios-5-1-swipe-gesture-hijacked-by-uisplitviewcontroller-how-to-avoid">iOS 5.1 swipe gesture hijacked by UISplitViewController - how to avoid?</a></p>
  
  <p>The fix for this seems to be to set the split view controller method "presentWithGesture" to "NO."</p>
  
  <pre><code>UISplitViewController *splitViewController = [[UISplitViewController alloc] init];
  splitViewController.presentsWithGesture = NO;
  </code></pre>
  
  <p>This works great if the user is using iOS 5.1, however, if this code is run using iOS 5.0 or below, an exception is thrown since this method is only available for iOS 5.1:</p>
  
  <pre><code>Terminating app due to uncaught exception 'NSInvalidArgumentException', 
  reason: '-[UISplitViewController setPresentsWithGesture:]: unrecognized selector 
  </code></pre>
  
  <p>Is it possible to get rid of this gesture without using this method so that it's backwards compatible with iOS' 5.0 and below?</p>