title: How to enable the ability to use the two-finger UIAccessibility "escape" gesture on a modal view?
body: <p>I'm looking to add the capability for a popup view to be dismissed by using the "two-finger-z- gesture, via <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAccessibilityAction_Protocol/Introduction/Introduction.html#//apple_ref/occ/instm/NSObject/accessibilityPerformEscape" rel="nofollow">accessibilityPerformEscape</a>. I've added this code to the view, but I am not able to dismiss it with the z gesture, is there anything else i'm missing?</p>
  
  <pre><code>- (BOOL)accessibilityViewIsModal
  {
      return YES;
  }
  
  - (BOOL)accessibilityPerformEscape
  {
      return YES;
  }
  </code></pre>