SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Downloaden Sie, um offline zu lesen
Introduction to RubyMotion
The Cool Way to Build iOS Apps
ByGantLaborde
@GantLaborde
Avid Rubyistand generallyimmature guy
Co-Founder of IconoclastLabs.com
Author of Numerous RubyMotion projects and PullRequests
Author of the book RubyMotion App Development
byPacktPublishing.
Motion Meetup Organizer
RubyMotion's MonthlyMeetup
meetup.RubyMotion.com
Matt Garrison
@mattsgarrison
RubyMotion
RubyMotion - Wat?
/ˈro ͞obē-mōSHən/
noun trademark
1. Aproprietarytoolchain, created byHipByte SPRL, for
developingnative iOS and OS X applications on Apple devices
and computers bystaticallycompilingthe Rubyprogramming
language.
OR
Apps the Ruby Way
Quick Example
Objective-C button tap
[button addTarget:self action:@selector(buttonTapped:)
forControlEvents: UIControlEventTouchUpInside];
// Elsewhere
- (void)buttonTapped:(id)sender {
self.view.backgroundColor = [UIColor redColor];
}
RubyMotion button tap
button.addTarget(self, action:'button_tapped',
forControlEvents:UIControlEventTouchUpInside)
# Elsewhere
def button_tapped
self.view.backgroundColor = UIColor.redColor
end
Better Example
Objective-C button tap
[button addTarget:self action:@selector(buttonTapped:)
forControlEvents: UIControlEventTouchUpInside];
// Elsewhere
- (void)buttonTapped:(id)sender {
self.view.backgroundColor = [UIColor redColor];
}
RubyMotion button tap (withsugarcubegem)
button.on(:touch) do
self.view.backgroundColor = :red.uicolor
end
and more like_ruby
lessLike:objectiveC:
-ClayAllsopp
What's So Great About RubyMotion?
In my opinion
Gems and Community
Editor Independence
Testing!
Readability
NativelyCompiled
The REPL
RubyMotion Analogy
RubyMotion is to Objective-C
As Coffeescriptis to Javascript
... plus gems are kind of like jQueryplugins
... plus MacBacon has spec tests like Jasmine would
... plus the REPL lets you live-modifylike developer tools
... plus itcompiles and obfuscates your finalcodebase
... OK, this analogygotoutof control
Let's Look At Code!
Classic -Hello World
FullApp -RubyTrivia
Games!
Hello World
$ motion create test
Tests willfail
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
@window.rootViewController = HelloWorldController.new
@window.makeKeyAndVisible
true
end
end
class HelloWorldController < UIViewController
def viewDidLoad
p "Hai"
end
end
Now tests pass!
Hello World - REPL
main_view = UIApplication.sharedApplication.windows[0].rootViewController.view
main_view.backgroundColor = UIColor.blueColor
OR, justcommand click the view!
# REPL input
self.backgroundColor = UIColor.whiteColor
@label = UILabel.new
@label.text = "Hello World"
@label.sizeToFit
self.addSubview(@label)
# get down from there!
@label.center = [100, 100]
OR, use sugarcube-repl's tree command.
Code Example #2
Ruby Trivia
sugarcube
Teacup
ProMotion
BubbleWrap
formotion
and more ...
iconoclastlabs.github.io/rubytrivia/
Availableonitunes
Let's look at the code!
Code Example #3
Joybox
Joybox
joybox.io
Based on Cocos2D
Includes Box2D physics
Wrapped in RubyAPI
EASY
Joybox
Let's look at some Joybox code!
2:51
Totally Tacos!
Agame made in one day!
Thank you!
Questions?
@GantLaborde
Feelfree to contactme viaGant@IconoclastLabs.com

Weitere ähnliche Inhalte

Ähnlich wie Introduction to RubyMotion - The Cool Way to Build iOS Apps

Android is going to Go! Android and Golang
Android is going to Go! Android and GolangAndroid is going to Go! Android and Golang
Android is going to Go! Android and GolangAlmog Baku
 
Android is going to Go! - Android and goland - Almog Baku
Android is going to Go! - Android and goland - Almog BakuAndroid is going to Go! - Android and goland - Almog Baku
Android is going to Go! - Android and goland - Almog BakuDroidConTLV
 
State ofappdevelopment
State ofappdevelopmentState ofappdevelopment
State ofappdevelopmentgillygize
 
Rubymotion inspect 2014_review
Rubymotion inspect 2014_reviewRubymotion inspect 2014_review
Rubymotion inspect 2014_reviewBob Firestone
 
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginnersClement Levallois
 
Rockstar Android Testing (Mobile TechCon Munich 2014)
Rockstar Android Testing (Mobile TechCon Munich 2014)Rockstar Android Testing (Mobile TechCon Munich 2014)
Rockstar Android Testing (Mobile TechCon Munich 2014)Danny Preussler
 
RubyMotion: Hack Your iOS App Like Never Before
RubyMotion: Hack Your iOS App Like Never BeforeRubyMotion: Hack Your iOS App Like Never Before
RubyMotion: Hack Your iOS App Like Never BeforeJoseph Ku
 
RubyMotion Introduction
RubyMotion IntroductionRubyMotion Introduction
RubyMotion IntroductionLori Olson
 
Introduction to Application Development in Python and Gtk+ / Hildon @ Maemo 5
Introduction to Application Development in Python and Gtk+ / Hildon @ Maemo 5Introduction to Application Development in Python and Gtk+ / Hildon @ Maemo 5
Introduction to Application Development in Python and Gtk+ / Hildon @ Maemo 5Amanda Lam
 
Tiggzi at DC jQuery Meetup
Tiggzi at DC jQuery MeetupTiggzi at DC jQuery Meetup
Tiggzi at DC jQuery MeetupMax Katz
 
Rhodes Ruby Nation
Rhodes Ruby NationRhodes Ruby Nation
Rhodes Ruby NationAdam Blum
 
Rhodes E Ruby Con
Rhodes E Ruby ConRhodes E Ruby Con
Rhodes E Ruby ConAdam Blum
 
【Primer】WebApp release in 3 hours! Programming from scratch Rails course
【Primer】WebApp release in 3 hours! Programming from scratch Rails course【Primer】WebApp release in 3 hours! Programming from scratch Rails course
【Primer】WebApp release in 3 hours! Programming from scratch Rails courseDIVE INTO CODE Corp.
 
Google I/O 2011, Android Honeycomb Highlights
Google I/O 2011, Android Honeycomb HighlightsGoogle I/O 2011, Android Honeycomb Highlights
Google I/O 2011, Android Honeycomb HighlightsRomain Guy
 
Exploring the Cutting-Edge Mobile App Development Technologies Shaping the Fu...
Exploring the Cutting-Edge Mobile App Development Technologies Shaping the Fu...Exploring the Cutting-Edge Mobile App Development Technologies Shaping the Fu...
Exploring the Cutting-Edge Mobile App Development Technologies Shaping the Fu...aTeam soft solutions
 
Unlocking the Power of Mobile App Development: Exploring the Latest Technologies
Unlocking the Power of Mobile App Development: Exploring the Latest TechnologiesUnlocking the Power of Mobile App Development: Exploring the Latest Technologies
Unlocking the Power of Mobile App Development: Exploring the Latest TechnologiesaTeam soft solutions
 
[Srijan Wednesday Webinars] Building Full-Fledged Native Apps Using RubyMotion
[Srijan Wednesday Webinars] Building Full-Fledged Native Apps Using RubyMotion[Srijan Wednesday Webinars] Building Full-Fledged Native Apps Using RubyMotion
[Srijan Wednesday Webinars] Building Full-Fledged Native Apps Using RubyMotionSrijan Technologies
 

Ähnlich wie Introduction to RubyMotion - The Cool Way to Build iOS Apps (20)

Android is going to Go! Android and Golang
Android is going to Go! Android and GolangAndroid is going to Go! Android and Golang
Android is going to Go! Android and Golang
 
Android is going to Go! - Android and goland - Almog Baku
Android is going to Go! - Android and goland - Almog BakuAndroid is going to Go! - Android and goland - Almog Baku
Android is going to Go! - Android and goland - Almog Baku
 
State ofappdevelopment
State ofappdevelopmentState ofappdevelopment
State ofappdevelopment
 
Rubymotion inspect 2014_review
Rubymotion inspect 2014_reviewRubymotion inspect 2014_review
Rubymotion inspect 2014_review
 
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginners
 
Rockstar Android Testing (Mobile TechCon Munich 2014)
Rockstar Android Testing (Mobile TechCon Munich 2014)Rockstar Android Testing (Mobile TechCon Munich 2014)
Rockstar Android Testing (Mobile TechCon Munich 2014)
 
RubyMotion: Hack Your iOS App Like Never Before
RubyMotion: Hack Your iOS App Like Never BeforeRubyMotion: Hack Your iOS App Like Never Before
RubyMotion: Hack Your iOS App Like Never Before
 
RubyMotion Introduction
RubyMotion IntroductionRubyMotion Introduction
RubyMotion Introduction
 
Introduction to Application Development in Python and Gtk+ / Hildon @ Maemo 5
Introduction to Application Development in Python and Gtk+ / Hildon @ Maemo 5Introduction to Application Development in Python and Gtk+ / Hildon @ Maemo 5
Introduction to Application Development in Python and Gtk+ / Hildon @ Maemo 5
 
Tiggzi at DC jQuery Meetup
Tiggzi at DC jQuery MeetupTiggzi at DC jQuery Meetup
Tiggzi at DC jQuery Meetup
 
Intro to PhoneGap
Intro to PhoneGapIntro to PhoneGap
Intro to PhoneGap
 
Rhodes Ruby Nation
Rhodes Ruby NationRhodes Ruby Nation
Rhodes Ruby Nation
 
Rhodes E Ruby Con
Rhodes E Ruby ConRhodes E Ruby Con
Rhodes E Ruby Con
 
【Primer】WebApp release in 3 hours! Programming from scratch Rails course
【Primer】WebApp release in 3 hours! Programming from scratch Rails course【Primer】WebApp release in 3 hours! Programming from scratch Rails course
【Primer】WebApp release in 3 hours! Programming from scratch Rails course
 
Google I/O 2011, Android Honeycomb Highlights
Google I/O 2011, Android Honeycomb HighlightsGoogle I/O 2011, Android Honeycomb Highlights
Google I/O 2011, Android Honeycomb Highlights
 
Exploring the Cutting-Edge Mobile App Development Technologies Shaping the Fu...
Exploring the Cutting-Edge Mobile App Development Technologies Shaping the Fu...Exploring the Cutting-Edge Mobile App Development Technologies Shaping the Fu...
Exploring the Cutting-Edge Mobile App Development Technologies Shaping the Fu...
 
Unlocking the Power of Mobile App Development: Exploring the Latest Technologies
Unlocking the Power of Mobile App Development: Exploring the Latest TechnologiesUnlocking the Power of Mobile App Development: Exploring the Latest Technologies
Unlocking the Power of Mobile App Development: Exploring the Latest Technologies
 
TryRubyMotion
TryRubyMotionTryRubyMotion
TryRubyMotion
 
[Srijan Wednesday Webinars] Building Full-Fledged Native Apps Using RubyMotion
[Srijan Wednesday Webinars] Building Full-Fledged Native Apps Using RubyMotion[Srijan Wednesday Webinars] Building Full-Fledged Native Apps Using RubyMotion
[Srijan Wednesday Webinars] Building Full-Fledged Native Apps Using RubyMotion
 
FGCU Camp Talk
FGCU Camp TalkFGCU Camp Talk
FGCU Camp Talk
 

Kürzlich hochgeladen

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 

Kürzlich hochgeladen (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

Introduction to RubyMotion - The Cool Way to Build iOS Apps

  • 1. Introduction to RubyMotion The Cool Way to Build iOS Apps ByGantLaborde
  • 2. @GantLaborde Avid Rubyistand generallyimmature guy Co-Founder of IconoclastLabs.com
  • 3. Author of Numerous RubyMotion projects and PullRequests Author of the book RubyMotion App Development byPacktPublishing.
  • 4. Motion Meetup Organizer RubyMotion's MonthlyMeetup meetup.RubyMotion.com
  • 7. RubyMotion - Wat? /ˈro ͞obē-mōSHən/ noun trademark 1. Aproprietarytoolchain, created byHipByte SPRL, for developingnative iOS and OS X applications on Apple devices and computers bystaticallycompilingthe Rubyprogramming language. OR Apps the Ruby Way
  • 8. Quick Example Objective-C button tap [button addTarget:self action:@selector(buttonTapped:) forControlEvents: UIControlEventTouchUpInside]; // Elsewhere - (void)buttonTapped:(id)sender { self.view.backgroundColor = [UIColor redColor]; } RubyMotion button tap button.addTarget(self, action:'button_tapped', forControlEvents:UIControlEventTouchUpInside) # Elsewhere def button_tapped self.view.backgroundColor = UIColor.redColor end
  • 9. Better Example Objective-C button tap [button addTarget:self action:@selector(buttonTapped:) forControlEvents: UIControlEventTouchUpInside]; // Elsewhere - (void)buttonTapped:(id)sender { self.view.backgroundColor = [UIColor redColor]; } RubyMotion button tap (withsugarcubegem) button.on(:touch) do self.view.backgroundColor = :red.uicolor end
  • 11. What's So Great About RubyMotion? In my opinion Gems and Community Editor Independence Testing! Readability NativelyCompiled The REPL
  • 12. RubyMotion Analogy RubyMotion is to Objective-C As Coffeescriptis to Javascript ... plus gems are kind of like jQueryplugins ... plus MacBacon has spec tests like Jasmine would ... plus the REPL lets you live-modifylike developer tools ... plus itcompiles and obfuscates your finalcodebase ... OK, this analogygotoutof control
  • 13. Let's Look At Code! Classic -Hello World FullApp -RubyTrivia Games!
  • 14. Hello World $ motion create test Tests willfail class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) @window.rootViewController = HelloWorldController.new @window.makeKeyAndVisible true end end class HelloWorldController < UIViewController def viewDidLoad p "Hai" end end Now tests pass!
  • 15. Hello World - REPL main_view = UIApplication.sharedApplication.windows[0].rootViewController.view main_view.backgroundColor = UIColor.blueColor OR, justcommand click the view! # REPL input self.backgroundColor = UIColor.whiteColor @label = UILabel.new @label.text = "Hello World" @label.sizeToFit self.addSubview(@label) # get down from there! @label.center = [100, 100] OR, use sugarcube-repl's tree command.
  • 16. Code Example #2 Ruby Trivia sugarcube Teacup ProMotion BubbleWrap formotion and more ...
  • 19. Let's look at the code!
  • 21. Joybox joybox.io Based on Cocos2D Includes Box2D physics Wrapped in RubyAPI EASY
  • 23. Let's look at some Joybox code! 2:51
  • 25. Thank you! Questions? @GantLaborde Feelfree to contactme viaGant@IconoclastLabs.com