Minor tweak for add

This commit is contained in:
Jamon Holmgren
2013-03-04 12:18:56 -08:00
parent e014162ef8
commit 071a5c2cd1

View File

@@ -165,7 +165,7 @@ class HomeScreen < ProMotion::Screen
def will_appear
# Set up the elements in your view with add
@label = add UILabel.alloc.initWithFrame(CGRectMake(5, 5, 20, 20))
@label ||= add UILabel.alloc.initWithFrame(CGRectMake(5, 5, 20, 20))
end
def on_appear