Created
May 16, 2013 00:23
-
-
Save jamonholmgren/5588519 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
Teacup::Stylesheet.new :main do | |
style :my_style, | |
constraints: [ | |
constrain_left(0), | |
constrain_width(100), | |
constrain_top(0), | |
constrain(:bottom).equals(:superview, :bottom), | |
] | |
end | |
class HomeScreen < PM::Screen | |
stylesheet :main | |
def will_appear | |
add UIView, :my_style | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind, I just had to call this way:
add UIView, { stylename: :background }