3

I'm looking to add the capability for a popup view to be dismissed by using the "two-finger-z- gesture, via accessibilityPerformEscape. 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?

- (BOOL)accessibilityViewIsModal
{
    return YES;
}

- (BOOL)accessibilityPerformEscape
{
    return YES;
}
Justin
  • 20,509
  • 6
  • 47
  • 58
3254523
  • 3,016
  • 7
  • 29
  • 43

1 Answers1

8

Your implementation of -accessibilityPerformEscape is empty. It is your responsibility to dismiss the modal view in response to the action.

Justin
  • 20,509
  • 6
  • 47
  • 58