Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About this Book
Author Online
About the Cover Illustration
1. Getting started with Objective-C
Chapter 1. Building your first iOS application
1.1. Introducing the iOS development tools
1.1.1. Adapting the Cocoa frameworks for mobile devices
1.2. Adjusting your expectations
1.2.1. A survey of hardware specifications, circa mid-2011
1.2.2. Expecting an unreliable internet connection
1.3. Using Xcode to develop a simple Coin Toss game
1.3.1. Introducing Xcode—Apple’s IDE
1.3.2. Launching Xcode easily
1.3.3. Creating the project
1.3.4. Writing the source code
1.4. Hooking up the user interface
1.4.1. Adding controls to a view
1.4.2. Connecting controls to source code
1.5. Compiling the Coin Toss game
1.6. Taking Coin Toss for a test run
1.6.1. Selecting a destination
1.6.2. Using breakpoints to inspect the state of a running application
1.6.3. Running the CoinToss game in the iPhone simulator
1.6.4. Controlling the debugger
1.7. Summary
Chapter 2. Data types, variables, and constants
2.1. Introducing the Rental Manager application
2.1.1. Laying the foundations
2.2. The basic data types
2.2.1. Counting on your fingers—integral numbers
2.2.2. Filling in the gaps—floating-point numbers
2.2.3. Characters and strings
2.2.4. Boolean truths
2.3. Displaying and converting values
2.3.1. NSLog and Format Specifiers
2.3.2. Type casts and type conversions
2.4. Creating your own data types
2.4.1. Enumerations