Created
July 9, 2016 22:54
-
-
Save kiok46/5ba74c2755ebe62b12807d210aeb2062 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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