iPhone apps with RubyMotion

I just purchased a copy of Rubymotion a few weeks ago. RubyMotion allows you to build full iPhone apps using... Ruby.  The founder was a former Apple developer who's sole project was MacRuby, who had left Apple to make RubyMotion his full time project.  RubyMotion gives you direct access to the iPhone's Objective-C API, and compiles the app to native binary, allowing it to be a legitimate iPhone app with no performance drawbacks (e.g. PhoneGap). I was convinced, after reading this article about PhoneGap vs Rubymotion to give it a try. Also, just knowing who built it and everyone who supports it convinces me. Here's an interview with the creator.

It will be a fun challenge to program with Ruby outside the usual Rails world I'm in every day. While learning the ins and outs of iPhone development I'll be putting together the basic interface for an app idea I've had for a while.

It's amazingly easy to build apps. Type "rake" in the command line and.. bada bing bada boom--an iPhone plops onto your screen and you're playing with the app (albeit a blank black screen if you haven't done anything yet). You even have the console to interactive with the app in runtime (something you can't do when developing normal Objective-C / XCode projects). A few weekends and a hand full of hours later, I was able to create some basic navigation with different screens. The below is a series of 4 screens I built to allow you to edit an object I'm calling a "Stack." You can add/delete ones, create a new one and edit a couple Stack settings. Took me a while to make everything look pretty. My favorite part is the very subtle gradient on the bottom of the rows on the first screen (and on the top when you drag it down.. like the Clock app).

 

blog comments powered by Disqus