Skip to content

Instantly share code, notes, and snippets.

@kiok46
Created July 9, 2016 22:54
Show Gist options
  • Save kiok46/5ba74c2755ebe62b12807d210aeb2062 to your computer and use it in GitHub Desktop.
Save kiok46/5ba74c2755ebe62b12807d210aeb2062 to your computer and use it in GitHub Desktop.
self.foo(UIApplication.sharedApplication(), "")
a = UIAlertController.alertControllerWithTitle_message_preferredStyle_(ns('Pycon Alert'),
ns('Talk in 10 minutes'),
0)
b = UIAlertView.alloc().initWithTitle_message_delegate_cancelButtonTitle_otherButtonTitles_(ns("Pycon Alert"),
ns("Talk in 10 minutes"),
None,
ns("Ok"),
None)
#b.show()
#self.foo(a, "")
#a.presentViewController_animated_completion_(a, True, None)
#a.showViewController_sender_(a, None)
#a.presentViewController_withTransition_completion_()
#self.foo(UIApplication.sharedApplication(), "")
def foo(self, name, string):
matching = []
matching = [s for s in dir(name) if "{}".format(string) in s]
for m in matching:
print m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment