Skip to content

Instantly share code, notes, and snippets.

@NSEcho
Created November 25, 2021 14:18
Show Gist options
  • Save NSEcho/0125ce0d26dd33808afd2dc3e3458766 to your computer and use it in GitHub Desktop.
Save NSEcho/0125ce0d26dd33808afd2dc3e3458766 to your computer and use it in GitHub Desktop.
ObjC.choose(ObjC.classes.UIAlertController, {
onMatch: function(instance) {
ObjC.schedule(ObjC.mainQueue, function() {
instance.dismissViewControllerAnimated_completion_(true, ptr(0x0));
})
},
onComplete: function(){}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment