RubyMotion Cookbook

Code examples for iOS development with RubyMotion.


Project maintained by IconoclastLabs Hosted on GitHub Pages — Theme by mattgraham

rubymotion_cookbook

RubyMotion Cookbook RubyMotion iOS Cookbook is our project to learn RubyMotion, iOS development, and to provide a valuable community resource of code examples. We're experts in none of these things so if you have a suggestion, be gentle, it's our first time. This is a work in progress.

We'll be following along with the actual iOS5 Programming Cookbook by Vandad Navandipoor from O'Reilly, starting with chapter two, and porting over the Obj-C code examples as we progress through the book. If you have the book and want to add to the project or if we've made an error, send us a pull request, we'll gladly accept the help! If you love butterflies and rainbows and can't resist telling us, just save that for a private message.

Additionally, we're aware that BubbleWrap and similar libraries exist and we're intentionally avoiding them. Wrapping difficult Cocoa libraries with elegant Ruby is a great idea, but we're attempting to map our examples 1:1 to the cookbook so that the body of the text remains relevant and using an external resource defeats that purpose. Plus, those libraries aren't very mature yet, the vanilla API access will always be relevant.

Chapters

Implementing Controllers and Views

Constructing and Using Table Views

Core Location and Maps

Implementing Gesture Recognizers

Networking, JSON, XML and Twitter

Audio and Video

Core Motion

Address Book

Camera and the Photo Library

Core Data

Graphics and Animations