My talk about RubyMotion and ProMotion on the Ams.rb meetup of January 2014.
Fonts: PT Serif and Meslo.
All vector images by me, ping me @wrdevos if you want them.
Apple Says No Demo App is here: https://github.com/foxycoder/apple_says_no
24. class AppDelegate < PM::Delegate
!
def on_load(app, options)
open RootScreen.new(nav_bar: true)
end
!
end
Now we’re talking Ruby
25. # app/screens/root_screen.rb
!
class RootScreen < PM::Screen
title "Root Screen"
!
def on_load
set_nav_bar_button :right, title: "Help", action: :help
end
!
def help
open HelpScreen
end
end
PM::Screen