Skip to content

Instantly share code, notes, and snippets.

@chrise86
Forked from pcolton/gist:4410841
Last active August 29, 2015 14:06
Show Gist options
  • Save chrise86/298276f1c34910bf6a98 to your computer and use it in GitHub Desktop.
Save chrise86/298276f1c34910bf6a98 to your computer and use it in GitHub Desktop.
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