Skip to content

Instantly share code, notes, and snippets.

@imranansari
Forked from pcolton/gist:4410841
Created February 25, 2013 18:50
Show Gist options
  • Save imranansari/5032219 to your computer and use it in GitHub Desktop.
Save imranansari/5032219 to your computer and use it in GitHub Desktop.
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
PXEngine.licenseKey('YOUR SERIAL', forUser:'YOUR USER')
@button = UIButton.buttonWithType(UIButtonTypeRoundedRect)
@button.styleId = "myButton"
@button.frame = [[100, 100], [80, 40]]
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
@window.addSubview(@button)
PXStylesheet.styleSheetFromFilePath('/Users/pcolton/Desktop/sample.css', withOrigin:0)
PXStylesheet.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