Sha256: 509e3ebc42289bbda4eba0afa7d5961641b98bcaa5c6366a30984753407ed55b

Contents?: true

Size: 434 Bytes

Versions: 2

Compression:

Stored size: 434 Bytes

Contents

class HomeScreen < ProMotion::Screen
  title "Home Screen"
  
  def on_load
    @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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ProMotion-0.4.1 app/screens/home_screen.rb
ProMotion-0.4.0 app/screens/home_screen.rb