You are previewing RubyMotion.
O'Reilly logo

Book Description

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.

Table of Contents

  1. <span xmlns="" xmlns:epub="" class="toc-secnum">&#160;</span>ForewordForeword
  2. <span xmlns="" xmlns:epub="" class="toc-secnum">&#160;</span>Ruby on iOSRuby on iOS
    1. Hello, RubyMotion
    2. Reading This Book
    3. Online Resources
    4. Acknowledgments
  3. <span xmlns="" xmlns:epub="" class="toc-secnum">1. </span>Creating a New AppCreating a New App
    1. Creating a New App
    2. Where It Begins: AppDelegate
    3. Showing a Message with UIAlertView
    4. Interactive Debugging
  4. <span xmlns="" xmlns:epub="" class="toc-secnum">2. </span>Filling the Screen with ViewsFilling the Screen with Views
    1. All About Views and UIView
    2. Making Shapes and Colors
    3. Adding Interaction with UIButton
    4. Animating Views
    5. Adding Static Text with UILabel
    6. Making Text Dynamic with UITextField
    7. Exploring RubyMotion Libraries
  5. <span xmlns="" xmlns:epub="" class="toc-secnum">3. </span>Organizing Apps with ControllersOrganizing Apps with Controllers
    1. Adding a New UIViewController
    2. Using Multiple Controllers with UINavigationController
    3. Separating Controllers with UITabBarController
    4. Presenting Modal <span xmlns="" xmlns:epub="" class="cf class">UIViewController</span>ss
  6. <span xmlns="" xmlns:epub="" class="toc-secnum">4. </span>Representing Data with ModelsRepresenting Data with Models
    1. Writing Basic Models
    2. Preparing Scalable Models
    3. Changing Models with Key-Value Observing
    4. Saving Data with NSUserDefaults and NSCoding
  7. <span xmlns="" xmlns:epub="" class="toc-secnum">5. </span> Showing Data with Table Views Showing Data with Table Views
    1. Starting with Simple Rows
    2. Interacting with UITableViews
    3. Sections and Indexing Tables
    4. Swiping-to-Delete Table Rows
    5. Grouped-Style UITableViews
  8. <span xmlns="" xmlns:epub="" class="toc-secnum">6. </span>Testing Your AppsTesting Your Apps
    1. Constructing Basic Tests
    2. Testing App UI and Controllers
  9. <span xmlns="" xmlns:epub="" class="toc-secnum">7. </span>Example: Writing an API-Driven AppExample: Writing an API-Driven App
    1. Setting Up the Project
    2. Adding Hash-Friendly Models
    3. Making GET Requests and SearchController
    4. POST Requests and ColorController
  10. <span xmlns="" xmlns:epub="" class="toc-secnum">8. </span>Uploading to the App StoreUploading to the App Store
    1. Including App Resources
    2. Archiving for Release
    3. What’s Next?
  11. <span xmlns="" xmlns:epub="" class="toc-secnum">&#160;</span>BibliographyBibliography