PacktLib: RubyMotion iOS Development Essentials

RubyMotion iOS Development Essentials

Credits

About the Authors

Acknowledgement

About the Reviewers

www.PacktPub.com

Preface

Getting Ready for RubyMotion

How can I develop an iOS application?

What is RubyMotion?

Why RubyMotion?

Pop quiz

RubyMotion installation – furnish your environment

FAQs

Summary

Instant Gratification – Your First Application

Your first application

Folder structure

Some more goodies

Exploring the command line

REPL – the interactive console

Debugger – catch your mistakes!

Summary

Evolution – From Objective-C to RubyMotion

Ruby and Objective-C – a partnership

Interfacing with C and Objective-C

Memory management

Summary

Mastering MVC Paradigm

Model-View-Controller (MVC)

The restaurant application

Connecting to an external API

Search restaurant by city

Picture speaks louder than words

Play time

Summary

User Interface – Cosmetics for Your App

Bars

Basic UI elements

Hands-on – add a Restro Application

Summary

Device Capability – Power Unleashed

Camera – smile please!

Location Manager – directions for apps

Gestures – non-verbal communication

Core Data – manage your data

Address Book – manage your contacts

Do it yourself

Summary

Interface Builder and WebView – More Goodies!

Interface Builder

UIWebView – embed web content

Summary

Testing – Let's Fail Gracefully

Unit testing

Functional testing

Device events

Summary

Creating a Game

Cocos2D

Let's create a game – Whac-A-Mole

Summary

Getting Ready for the App Store

Generating certificates

Provisioning profile

Setting up the RubyMotion project

Creating bundles for submission

Summary

Extending RubyMotion

RubyMotion gems

CocoaPods – managing Objective-C libraries

Summary

What next?

Index