People and places you should get to know

Now you've got a firm understanding of the base of RubyMotion, and you're ready to spread your wings and learn more! This section helps in directing you to the sources that may interest you as you plan to advance your knowledge and build rich applications.

Foundations

If you'd like to broaden your foundation of RubyMotion or continue advancing your knowledge of iOS, you'll want to address these sources and absorb their knowledge.

Base documentation

Everything that Apple puts out there for developers is a great resource for you as well. Fortunately, the API has also been completely converted to RubyMotion and is available on the RubyMotion website. As dry as it may seem, you'll want to bookmark these base references:

If you're new to iOS UI standards, you should really review the documentation of different UI Element Guidelines. You'll want to conform to these standards as well as use them to list possible UI elements you will have available.

RubyMotion documentation

There's a lot of great information and reference material on the RubyMotion website. I strongly suggest you view their guides and articles:

http://www.rubymotion.com/developer-center/

One of the projects I was fortunate to help with was the conversion of basic iOS 5 recipes from Objective-C to RubyMotion. The project is open source, and will help you find the RAW how-to basics of writing basic functional aspects. Whenever I'm looking to add a switch, button, map, or accelerometer to a project, I can quickly look up the RubyMotion conversion of that code. This project is open source, and always welcomes updates, fixes, features, and so on.

RubyMotion examples

Another project I've taken a large part in is MotionTemplate. The default application from the motion generator doesn't give you much to work with, so sometimes it's nice to take options out rather than put them in. Hopefully, one day this can grow into the wizardry of a major project such as the Rails Composer. It's also a good shell of an application to start with.

Popular Gems

As you've seen we've already covered four Gems in the Utilizing Gems subsection in the Top 3 features you need to know about section. We'll expose a few more here to appease your appetite. You should explore Gems regularly, since they have so much benefit!

  • BubbleWrap (RubyMotion Group): This was one of the first RubyGems to apply specifically to RubyMotion. This is an amazing Gem that comes highly recommended. It may share some functionality of SugarCube, but usually in a way.
  • Formotion (Clay Allsopp): I've had the pleasure to contribute a very small portion of code to this amazing Gem. Whenever you're going to create a form inside your app, this is, by far, the best Gem for the job.
  • Motion X-Ray (Colin T.A. Gray): This Gem has an amazing debugging and inspection capability that allows you to interface with your application's structure. Take a look at this one!
  • ProMotion (Clear Sight Studio): This Gem helps you restructure your entire application with a simpler workflow that feels more like traditional idiomatic Ruby
  • RubyMotion-Pixate (Paul Colton, Shizuo Fujita): This code is very similar to Teacup, which we explored earlier. Pixate is much more geared towards emulating actual CSS. Even though they may seem almost in competition with one another, they can both be used and both afford you excellent UI!

You can find other popular gems that are RubyMotion wrappers to iOS here:

http://rubymotion-wrappers.com/

Or, write your own:

http://www.rubymotion.com/developer-center/articles/gems/

Communities

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset