app/screens/home_screen.rb in ProMotion-0.3.0 vs app/screens/home_screen.rb in ProMotion-0.4.0

- old
+ new

@@ -1,10 +1,21 @@ class HomeScreen < ProMotion::Screen title "Home Screen" def on_load - @label = add_view UILabel.alloc.initWithFrame(CGRectMake(5, 5, 20, 20)), { - text: "This is awesome!", - font: UIFont.UIFont.systemFontOfSize(18) + @label = add_view UILabel.alloc.initWithFrame(CGRectZero), { + text: "Working...", + font: UIFont.systemFontOfSize(18), + textColor: UIColor.blackColor } + + self.view.backgroundColor = UIColor.whiteColor + self.set_nav_bar_right_button "Test", action: :test_it + end + + def on_appear + end + + def test_it + open TestScreen end end \ No newline at end of file