Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
RubyMotion iOS Development Essentials

You're reading from  RubyMotion iOS Development Essentials

Product type Book
Published in Jul 2013
Publisher Packt
ISBN-13 9781849695220
Pages 262 pages
Edition 1st Edition
Languages
Toc

Table of Contents (19) Chapters close

RubyMotion iOS Development Essentials
Credits
About the Authors
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
1. Getting Ready for RubyMotion 2. Instant Gratification – Your First Application 3. Evolution – From Objective-C to RubyMotion 4. Mastering MVC Paradigm 5. User Interface – Cosmetics for Your App 6. Device Capability – Power Unleashed 7. Interface Builder and WebView – More Goodies! 8. Testing – Let's Fail Gracefully 9. Creating a Game 10. Getting Ready for the App Store 11. Extending RubyMotion Index

Index

A

  • accessor method / Structures
  • addGestureRecognizer() method / Gesture example
  • address book
    • about / Address Book – manage your contacts
  • addressbook_controller controller / Address Book – manage your contacts
  • add_form_elements method / Textfield, Button
  • alert box
    • goodies, adding / Some more goodies, Let's understand the code
    • UIScreen object / Let's understand the code
  • App ID / App ID
  • Application Loader / Creating bundles for submission
  • App module / BubbleWrap – making Cocoa APIs more Ruby-like
  • ARC / Managed memory
  • Array / Ruby and Objective-C share the same ancestor

B

  • Bacon**Functional.default_timeout property / Functional testing
  • bars
    • about / Bars
  • bars, types
    • tab bar / The tab bar
    • navigation bar / The navigation bar
    • status bar / The status bar
  • basic UI elements
    • about / Basic UI elements
    • label / Label
    • Textfield / Textfield
    • Switch button / Switch button
    • Slider / Slider
    • Button / Button
    • Picker view / Picker view
  • BubbleWrap / BubbleWrap – making Cocoa APIs more Ruby-like
  • build_dir, property / Rake file – configuring your application
  • bundle install command / Teacup – say goodbye to Xcode and XIB files!
  • Bundler / Teacup – say goodbye to Xcode and XIB files!
  • Button / Button

C

  • camera
    • about / Camera – smile please!
    • choosing / Camera example
    • code, adding / Understanding the Camera code
  • Cascading Style Sheets-type (CSS) syntax / Teacup – say goodbye to Xcode and XIB files!
  • CCDirector class / Let's start coding!
  • CCEaseInOut class / Adding motion to moles
  • CCLabelTTF class / Let's start coding!
  • CCSequence class / Adding motion to moles
  • certificates
    • generating / Generating certificates, Do it yourself
  • CGPointMake function / Functions
  • Choose from Gallery button / Camera example
  • classes / Classes
  • Click for contacts button / Address Book – manage your contacts
  • CocoaPods
    • about / CocoaPods – managing Objective-C libraries
    • Objective-C libraries, libraries / CocoaPods – managing Objective-C libraries
    • installing, with RubyMotion / Installing CocoaPods with RubyMotion
  • Cocos2D
    • about / Cocos2D
  • codesign_certificate property / Rake file – configuring your application
  • Command key / REPL – the interactive console
  • command line
    • exploring / Exploring the command line
    • motion command / Motion command – one-stopshop
    • Rake tasks / Rake tasks – get things done fast
    • Rake file / Rake file – configuring your application
  • Command Line Tools / Prerequisites for RubyMotion
  • Common icons, iOS
    • UITabBarSystemItemMore / Customizing the tab bar
    • UITabBarSystemItemFavorites / Customizing the tab bar
    • UITabBarSystemItemFeatured / Customizing the tab bar
    • UITabBarSystemItemRecents / Customizing the tab bar
    • UITabBarSystemItemContacts / Customizing the tab bar
    • UITabBarSystemItemBookmarks / Customizing the tab bar
    • UITabBarSystemItemSearch / Customizing the tab bar
    • UITabBarSystemItemDownloads / Customizing the tab bar
    • UITabBarSystemItemMostRecent / Customizing the tab bar
    • UITabBarSystemItemMostViewed / Customizing the tab bar
  • Controller / Controller
  • Core Data
    • about / Core Data – manage your data
    • example / Core Data example
    • employee, creating / Creating an employee
    • employee, deleting / Deleting the employee
  • Core Location framework / Location Manager – directions for apps
  • Core Services layer
    • code, adding / Location Manager – directions for apps
  • Create new developer profile form / Developer Provisioning Profile
  • C strings / Pointers

D

  • data types / Types
  • debugger
    • starting with, ways / How to start debugging
    • simulator, testing on / While testing on a simulator
    • testing, on simulator / While testing on a simulator
    • testing, on device / While testing on a device
    • commands, entering / Entering commands before starting
  • Debug | Change Location / Location Manager example
  • delegate_class property / Rake file – configuring your application
  • Deliver Your App option / Creating bundles for submission
  • deployment_target property / Rake file – configuring your application
  • describe() method / Unit testing
  • describe block / Unit testing
  • device events
    • about / Device events
    • rotate device / Rotate device
    • accelerometer device event / Accelerometer device event
    • gestures / Gestures
  • device_family property / Rake file – configuring your application
  • displayPerson method / Address Book – manage your contacts
  • drag, gestures / Drag
  • drag method
    • from option / Drag
    • to option / Drag
    • number_of_points option / Drag
    • points option / Drag
    • touches option / Drag
  • drawAtPoint
    • withFont* method / Structures
  • DWARF debugging / Debugger – catch your mistakes!

E

  • edit-compile-run loop / Easy debugging with REPL
  • EULA / Installing RubyMotion
  • ExampleGroup class / Unit testing
  • exercise / FAQs, Play time
  • exercises / Task 1 – show nearest restaurant

F

  • Files property / Rake file – configuring your application
  • Flick, gestures
    • about / Flick
    • from option / Flick
    • to option / Flick
  • folder structure / Folder structure
    • app folder / Folder structure
    • app_delegate.rb file / Folder structure
    • resources folder / Folder structure
    • Spec folder / Folder structure
    • Rakefile / Folder structure
  • fonts property / Rake file – configuring your application
  • foo / Ruby and Objective-C share the same ancestor
  • Foo class / Classes
  • foo class method / Classes
  • Foundation Framework / Ruby and Objective-C – a partnership
  • framework property / Rake file – configuring your application
  • functional testing
    • about / Functional testing

G

  • game_layer.rb file / Adding scores
  • GDB (GNU Debugger) / Debugging and testing
  • gesture
    • example / Gesture example
    • custom gesture recognizer, implementing / Do it yourself
  • gestures
    • about / Gestures – non-verbal communication, Gestures
    • UIGestureRecognizer subclasses / Gestures – non-verbal communication
    • constant / Gestures
    • tap / Tap
    • flick / Flick
    • Pinch open / Pinch open
    • Pinch close / Pinch close
    • drag / Drag
    • rotation / Rotation
  • GNU project debugger / Debugger – catch your mistakes!

H

  • Hash / Ruby and Objective-C share the same ancestor
  • HelloWorld application / Your first application
  • Hybrid applications / Hybrid applications

I

  • icons property / Rake file – configuring your application
  • identifier property / Rake file – configuring your application
  • image source
    • choosing / Camera – smile please!
  • Info.plist settings / Info.plist settings
  • init method / Adding motion to moles
  • instance methods / Classes
  • Interface Builder
    • about / Interface Builder, Let's try the Interface Builder
    • working with / Let's try the Interface Builder
    • View window / Let's try the Interface Builder
    • Library window / Let's try the Interface Builder
    • document browser / Let's try the Interface Builder
    • Inspector window / Let's try the Interface Builder
    • .xib to RubyMotion / .xib to RubyMotion
  • interface_orientations property / Rake file – configuring your application
  • iOS application development
    • about / How can I develop an iOS application?
    • Objective-C, using / Native apps using Objective-C
    • mobile web applications / Mobile web applications
    • hybrid applications / Hybrid applications
  • iOS developer library / Folder structure
  • iTunes Connect / iTunes Connect

L

  • label
    • about / Label
    / Label
  • libs property / Rake file – configuring your application
  • LLVM / It is not a bridge
  • Location Manager
    • example / Location Manager example

M

  • memory management
    • about / Memory management
  • Mobile web applications / Mobile web applications
  • Model / Model
  • Model updates / Controller
  • motion-addressbook / motion-addressbook – access phonebook easily
  • motion-cocoapods gem / CocoaPods – managing Objective-C libraries
  • motion command
    • about / Motion command – one-stopshop
    • motion account / Motion command – one-stopshop
    • motion activate / Motion command – one-stopshop
    • motion create <project name> / Motion command – one-stopshop
    • motion ri <API-name> / Motion command – one-stopshop
    • motion update / Motion command – one-stopshop
    • motion support / Motion command – one-stopshop
    / The restaurant application, Camera example, Core Data example
  • MVC
    • about / Model-View-Controller (MVC)
    • Model / Model
    • View / View
    • Controller / Controller

N

  • named parameter / Objective-C messages
  • name property / Rake file – configuring your application
  • navigation bar
    • about / The navigation bar
    • customizing / Customizing the navigation bar
  • Notify / Controller
  • NSAttributeDescription class / Core Data example
  • NSJSONSerialization class / Connecting to an external API
  • NSManagedObjectContext class / Core Data example
  • NSString class / Ruby and Objective-C share the same ancestor
  • numberOfComponentsInPickerView method / Picker view
  • numberOfRowsInComponent method / Picker view
  • Numeric / Ruby and Objective-C share the same ancestor

O

  • Object class / Enumerations and constants
  • Objective-C, interfacing
    • types / Types, Enumerations and constants
    • functions / Functions
    • structures / Structures
    • pointers / Pointers
    • classes / Classes
    • Objective-C messages / Objective-C messages
    • RubyMotion selectors / RubyMotion selectors
  • Option key / Gesture example

P

  • phonebook_access method / Address Book – manage your contacts
  • picker view / Picker view
  • pickerView
    • titleForRowTopicnforComponent method / Picker view
  • Pinch close, gestures / Pinch close
    • about / Pinch close
    • from option / Pinch close
    • to option / Pinch close
  • Pinch open, gestures
    • about / Pinch open
    • from option / Pinch open
    • to option / Pinch open
  • pointers
    • id* / Pointers
    • Char / Pointers
    • unsigned char* / Pointers
    • short* / Pointers
    • unsigned short* / Pointers
    • int* / Pointers
    • unsigned int* / Pointers
    • long* / Pointers
    • unsigned long* / Pointers
    • long long* / Pointers
    • unsigned long long* / Pointers
    • float / Pointers
    • double* / Pointers
  • prerendered_icon property / Rake file – configuring your application
  • provisioning profile
    • about / Provisioning profile
    • App ID / App ID
    • devices, adding / Adding devices
    • Developer Provisioning Profile / Developer Provisioning Profile, Do it yourself
  • provisioning_profile property / Rake file – configuring your application

R

  • rake command / Ruby and Objective-C share the same ancestor, Connecting to an external API, Let's start coding!
  • Rake file
    • application, configuring / Rake file – configuring your application
  • Rake tasks
    • Rake archive / Rake tasks – get things done fast
    • Rake archive*distribution / Rake tasks – get things done fast
    • Rake build / Rake tasks – get things done fast
    • Rake build*device / Rake tasks – get things done fast
    • Rake build*simulator / Rake tasks – get things done fast
    • Rake clean / Rake tasks – get things done fast
    • Rake config / Rake tasks – get things done fast
    • Rake ctags / Rake tasks – get things done fast
    • Rake default / Rake tasks – get things done fast
    • Rake device / Rake tasks – get things done fast
    • Rake simulator / Rake tasks – get things done fast
    • Rake spec / Rake tasks – get things done fast
    • Rake spec*device / Rake tasks – get things done fast
    • Rake spec*simulator / Rake tasks – get things done fast
    • Rake static / Rake tasks – get things done fast
  • reload_data method / Creating an employee
  • REPL
    • used, for debugging / Easy debugging with REPL
    / REPL – the interactive console
  • Request Certificate option / Generating certificates
  • resource folder / Games without any sounds are boring — let's add some sound
  • resources_dir property / Rake file – configuring your application
  • restaurant
    • searching, by city / Search restaurant by city, What just happened
    • thumbnail image / Picture speaks louder than words
  • restaurant application
    • about / The restaurant application
    • mode, creating / Creating a model
    • code, writing / Writing more code
    • Restaurant controller / Restaurant controller
    • Restaurant view / Restaurant view
    • external API, connecting to / Connecting to an external API
  • Restroapp / App ID
  • Restro Application
    • adding / Hands-on – add a Restro Application
  • rootViewController property / Unit testing
  • rotate method / Rotation
  • rotate_device command / Rotate device
  • rotation, gestures / Rotation
  • Ruby class
    • foo / Ruby and Objective-C share the same ancestor
    • String / Ruby and Objective-C share the same ancestor
    • Array / Ruby and Objective-C share the same ancestor
    • Hash / Ruby and Objective-C share the same ancestor
    • Numeric / Ruby and Objective-C share the same ancestor
    • Time / Ruby and Objective-C share the same ancestor
  • RubyMotion
    • about / What is RubyMotion?
    • need for / Why RubyMotion?
    • non-Objective-C fan / If you are not an Objective-C fan
    • managed memory / Managed memory
    • terminal-based workflow / Terminal-based workflow
    • easy debugging, REPL used / Easy debugging with REPL
    • extendable feature / It is extendable
    • debugging / Debugging and testing
    • testing / Debugging and testing
    • installing / RubyMotion installation – furnish your environment
    • updating / Update RubyMotion
    • and Objective-C / Ruby and Objective-C – a partnership
  • RubyMotion-Objective-C partnership
    • about / Ruby and Objective-C – a partnership
    • diagram / Ruby and Objective-C – a partnership
    • ancestor origin / Ruby and Objective-C share the same ancestor
  • RubyMotion community / How to get help
  • RubyMotion debugger
    • inbuilt debugging facilities / Debugger – catch your mistakes!
  • RubyMotion gems
    • about / RubyMotion gems
    • Teacup / Teacup – say goodbye to Xcode and XIB files!
    • BubbleWrap / BubbleWrap – making Cocoa APIs more Ruby-like
    • motion-addressbook / motion-addressbook – access phonebook easily
  • RubyMotion installation
    • prerequisites / Prerequisites for RubyMotion
    • steps / Installing RubyMotion
    • testing / How do we check we've done everything correctly?
    • own editor, selecting / Pick your own editor – you are not forced to use Xcode
    • help / How to get help
  • RubyMotion project
    • entitlements / Entitlements
    • Info.plist settings / Info.plist settings
    • icons, building / Building icons
    • application, configuring / Configuring your application
    • device, installing / Installing on a device
    • iTunes Connect / iTunes Connect
  • RubyMotion selectors
    • setFoo / RubyMotion selectors
    • isFoo / RubyMotion selectors
    • objectForKey / RubyMotion selectors
    • setObjectTopicnforKey / RubyMotion selectors
  • RVM / Prerequisites for RubyMotion

S

  • SDK / What is RubyMotion?
  • sdk_version property / Rake file – configuring your application
  • searchBar
    • selectedScopeButtonIndexDidChange method / What just happened
  • searchBarBookmarkButtonClicked method / What just happened
  • searchBarCancelButtonClicked method / What just happened
  • searchBarResultsListButtonClicked method / What just happened
  • searchBarSearchButtonClicked method / What just happened
  • seed_id property / Rake file – configuring your application
  • self.dismissModalViewControllerAnimated(true) method / Understanding the Camera code
  • sharedInstanceWithObject
    • andObject *class / Classes
  • sharedInstanceWithObject method / Classes
  • Show Picker button / Picker view
  • show_map method / Location Manager example
  • Slider / Slider
  • Spec**ExampleGroup class / Unit testing
  • spec_dir property / Rake file – configuring your application
  • status bar
    • about / The status bar
    • customizing, Rakefile used / The status bar
    • customizing, app code used / The status bar
  • String / Ruby and Objective-C share the same ancestor
  • String class / Ruby and Objective-C share the same ancestor
  • submission bundles
    • creating / Creating bundles for submission
  • Submit button / .xib to RubyMotion
  • sum_of_square_number method / Unit testing
  • switch button / Switch button
  • syntactic sugar / Creating a model

T

  • tab bar
    • about / The tab bar
    • customizing / Customizing the tab bar
    • icons, adding / Customizing the tab bar
    • custom icon / Customizing the tab bar
    • Common icons provided by iOS / Customizing the tab bar
  • tableView
    • numberOfRowsInSection property / Restaurant view
  • Tap, gestures
    • about / Tap
    • at parameter / Tap
    • times parameter / Tap
    • touches parameter / Tap
  • TDD / Unit testing
  • Teacup
    • using / Teacup – say goodbye to Xcode and XIB files!
  • Terminal-based workflow / Terminal-based workflow
  • testing
    • unit testing / Unit testing
    • functional testing / Functional testing
  • Textfield / Textfield
  • thumbnail image / Picture speaks louder than words
  • Time / Ruby and Objective-C share the same ancestor
  • titleForRow method / Picker view
  • touch events
    • adding, to Whac-A-Mole game / Adding touch events to the game

U

  • UIBarButtonItem class / Customizing the navigation bar
  • UIGestureRecognizer, subclasses
    • UITapGestureRecognizer / Gestures – non-verbal communication
    • UIPinchGestureRecognizer / Gestures – non-verbal communication
    • UIPanGestureRecognizer / Gestures – non-verbal communication
    • UISwipeGestureRecognizer / Gestures – non-verbal communication
    • UIRotationGestureRecognizer / Gestures – non-verbal communication
    • UILongPressGestureRecognizer / Gestures – non-verbal communication
  • UIImagePickerController class / Camera – smile please!
  • UILongPressGestureRecognizer class / Gestures – non-verbal communication
  • UIPanGestureRecognizer class / Gestures – non-verbal communication
  • UIPickerView class / Picker view
  • UIPinchGestureRecognizer class / Gestures – non-verbal communication
  • UIRotationGestureRecognizer class / Gestures – non-verbal communication
  • UISearchBar class / What just happened
  • UISearchBar object / What just happened
  • UISwipeGestureRecognizer class / Gestures – non-verbal communication
  • UITableView class / Restaurant view
  • UITableView class / Restaurant view
  • UITapGestureRecognizer class / Gestures – non-verbal communication
  • UIViewController class / Restaurant controller
  • UIViewController element / Let's try the Interface Builder
  • UIWebView
    • about / UIWebView – embed web content
  • UIWindow class / Writing more code
  • unit testing
    • about / Unit testing
  • Update / Controller
  • update_fetched_employee_with_fetch_request method / Creating an employee
  • User Action / Controller

V

  • version property / Rake file – configuring your application
  • View / View, Controller
  • view(label) property / Functional testing
  • view.reloadData class / What just happened
  • View and Controller layers / Controller
  • viewDidLoad method / Location Manager example, Teacup – say goodbye to Xcode and XIB files!

W

  • web content
    • embeddding / UIWebView – embed web content
  • Whac-A-Mole game
    • creating / Let's create a game – Whac-A-Mole
    • starting with / Let's start coding!
    • motion, adding to moles / Adding motion to moles
    • touch events, adding / Adding touch events to the game
    • scores, adding / Adding scores
    • sounds, adding / Games without any sounds are boring — let's add some sound
  • WWDR / Generating certificates

X

  • Xcode
    • Interface Builder / Interface Builder
  • Xcode_dir property / Rake file – configuring your application
lock icon The rest of the chapter is locked
arrow left Previous Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}