Created
June 19, 2016 19:12
-
-
Save lukaskollmer/26cdacbc2a29188b24d170a3a18f4d3c to your computer and use it in GitHub Desktop.
pinkonista
This file contains hidden or 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
| from objc_util import * | |
| UIColor = ObjCClass('UIColor') | |
| UIViewController = ObjCClass('UIViewController') | |
| @on_main_thread | |
| def main(): | |
| color = UIColor.colorWithHexString_('#FFC0CB') | |
| vc = UIViewController.new() | |
| vc.view().setBackgroundColor_(color) | |
| tabVC = UIApplication.sharedApplication().keyWindow().rootViewController() | |
| tabVC.presentViewController_animated_completion_(vc, False, None) | |
| if __name__ == '__main__': | |
| main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment