-
-
Save chrise86/298276f1c34910bf6a98 to your computer and use it in GitHub Desktop.
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
class AppDelegate | |
def application(application, didFinishLaunchingWithOptions:launchOptions) | |
PixateFreestyle.initializePixateFreestyle | |
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) | |
@window.rootViewController = UIViewController.alloc.init | |
@window.styleMode = PXStylingNormal | |
@button = UIButton.buttonWithType UIButtonTypeSystem | |
@button.setTitle "Pixate", forState: UIControlStateNormal | |
@button.frame = [[100, 100], [80, 40]] | |
@window.addSubview(@button) | |
PixateFreestyle.styleSheetFromFilePath('/Users/pcolton/Desktop/test.css', withOrigin:PXStylesheetOriginApplication) | |
PixateFreestyle.updateStylesForAllViews | |
PixateFreestyle.currentApplicationStylesheet.monitorChanges = true | |
@window.makeKeyAndVisible | |
true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment