Make beautiful apps with beautiful code: use the elegant and concise Ruby programming language with RubyMotion to write truly native iOS apps with less code while having more fun. You'll learn the essentials of creating great apps, and by the end of this book, you'll have built a fully functional API-driven app. Whether you're a newcomer looking for an alternative to Objective-C or a hardened Rails veteran, RubyMotion allows you to create gorgeous apps with no compromise in performance or developer happiness.
Developers interested in native iOS app development have been restricted to the limits of Objective-C and Xcode--until RubyMotion came along. RubyMotion enables you do full iOS development using Ruby. You have access to familiar tools such as Rake and RubyGems and can compile Ruby code into native applications. RubyMotion even comes with a Ruby console useful for live coding and interactive debugging. And since RubyMotion is built on top of the Objective-C runtime, you can use all of Apple's libraries and most third-party code alongside Ruby classes.
This book takes you from zero knowledge of iOS development to building an app that displays information about colors using a web service API. You'll work through each topic with a small example app that covers just enough to get you familiar with the techniques you need to get real work done.
You'll start with just drawing boxes on the screen, but you'll quickly add animations, a navigation stack, and high-performance table views. You'll peek into less visible components, such as using Ruby metaprogramming to create JSON-based models. You'll use some incredibly useful common Ruby techniques that are only possible in RubyMotion, such as writing automated unit tests with an RSpec-like framework.
Using both Apple's existing libraries and fresh, community-driven RubyMotion projects, you'll be well on your way to writing real-world apps.
What You Need:
A Macintosh running OS X 10.7 or later is required to install RubyMotion. RubyMotion is a commercial product and currently requires a purchased license. Experience with the Ruby language and Ruby tools like RubyGems and Rake are suggested.
Engineering Innovative Products: A Practical Experience
"The book provides vital insights into commercial development for engineering students in a highly practical and applied manner. Over the past 3 years, application of the book’s material has allowed the students to develop their commercial literacy and ambition in the University."
—Steve Orr, Director,...
The previous unit, Unit 6, has shown you how to create graphical user interfaces that contain a wide range of components and have quite sophisticated layouts. You are also in a position now to make use of Java reference material to investigate and use other components and layouts. However, when the user clicks on a button or enters text, nothing... Building Machine Learning Systems with Python
As the Big Data explosion continues at an almost incomprehensible rate, being able to understand and process it becomes even more challenging. With Building Machine Learning Systems with Python, you'll learn everything you need to tackle the modern data deluge - by harnessing the unique capabilities of Python and its extensive range of...
Instant PHP Web Scraping
Get up and running with the basic techniques of web scraping using PHP
Learn something new in an Instant! A short, fast, focused guide delivering immediate results
Build a re-usable scraping class to expand on for future projects
Scrape, parse, and save data from any...
Wireless Networks and Security: Issues, Challenges and Research Trends (Signals and Communication Technology)
“Wireless Networks and Security” provides a broad coverage of wireless security issues including cryptographic coprocessors, encryption, authentication, key management, attacks and countermeasures, secure routing, secure medium access control, intrusion detection, epidemics, security performance analysis, security issues in...
Practical Data Science with R
Practical Data Science with R lives up to its name. It explains basic principles without the theoretical mumbo-jumbo and jumps right to the real use cases you'll face as you collect, curate, and analyze the data crucial to the success of your business. You'll apply the R programming language...