I recently found this book as a great iPad reference. Most iPhone veterans share a common problem: they must give up the idea that they will ever comprehend all the material Cocoa Touch and iOS put in front of them. Designing for the iPad adds another element: a bigger screen that no longer has to b
iPhone and iPad Apps for Absolute Beginners (Getting Started)
✍ Scribed by Rory Lewis
- Publisher
- Apress
- Year
- 2010
- Tongue
- English
- Leaves
- 336
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
✦ Synopsis
The iPhone is the hottest gadget of our generation, and much of its success has been fueled by the App Store, Apple’s online marketplace for iPhone applications. Over 1 billion apps have been downloaded in the 9 months the App Store has been open, ranging from the simplest games to the most complex business apps. Everyone has an idea for the next best-selling iPhone app—presumably that’s why you’re reading this now. And with the release of the iPad, this demand will just continue to grow. So how do you build an application for the iPhone and iPad? Don’t you need to spend years learning complicated programming languages? What about Objective-C, Cocoa Touch, and the software development kit (SDK)? The answer is that you don’t need to know any of those things. Anybody can start building simple applications for the iPhone and iPad, and this book will show you how. This book takes you to getting your first applications up and running using plain English and practical examples. It cuts through the fog of jargon and misinformation that surrounds iPhone and iPad application development, and gives you simple, step-by-step instructions to get you started. Teaches iPhone and iPad application development in language anyone can understand Provides simple, step-by-step examples that make learning easy Offers videos that enable you to follow along with the author—it’s like your own private classroom What you’ll learn Get both yourself and your computer set up for iPhone and iPad application development. Start by making small changes to existing applications to build your knowledge and experience before creating your own applications. Follow steps in plain English to build simple apps and get them working immediately. Style your application so that it looks good and users can easily navigate through it. Make use of the iPhone’s touch screen and accelerometer. Use shortcuts and cheat sheets to create apps the easy way. Who this book is for If you have a great idea for an iPhone or iPad app, but have never programmed before, then this book is for you. You don’t need to have any previous computer programming skills—as long as you have a desire to learn, and you know which end of the mouse is which, you’ll be fine. Table of Contents Before We Get Started Blast-Off! What’s Next? An Introduction to the Code Buttons & Labels with Multiple Graphics Switch View with Multiple Graphics Dragging, Rotating, and Scaling Table Views, Navigation, and Arrays MapKit
✦ Table of Contents
Prelim......Page 1
Contents at a Glance......Page 6
Contents......Page 7
Foreword......Page 11
About the Contributing Authors......Page 14
About the Technical Reviewer......Page 15
Acknowledgments......Page 16
What This Book Will Do For You......Page 17
The Approach I Take......Page 18
Necessities and Accessories......Page 19
Computer Science: A Broad and Diverse Landscape......Page 24
What You Will Learn......Page 27
How Does This All Work?......Page 28
Our Road Map: Using Xcode and Interface Builder......Page 30
Blast-Off!......Page 35
helloWorld_002 – a Navigation-based Application......Page 56
helloWorld_003 – Modifying a Navigation-based App......Page 66
What’s Next?......Page 71
Introducing Chapter 4—An Introduction to the Code......Page 72
Introducing Chapter 5—Buttons & Labels with Multiple Graphics......Page 73
Introducing Chapter 6—Switch View with Multiple Graphics......Page 74
Introducing Chapter 7—Dragging, Rotating, and Scaling......Page 76
Introducing Chapter 8—Table Views, Navigation, and Arrays......Page 77
§II: THE iPHONE AND THE iPAD......Page 78
§III: A LOOK UNDER THE HOOD......Page 84
You’ve Said “Hello!” … but now, INDIO!......Page 85
An Introduction to the Code......Page 89
004_helloWorld: Buttons with Graphics......Page 90
Nibs, Zibs, and Xibs......Page 107
Methods......Page 108
helloWorld_005: a View-Based Application......Page 111
Preliminaries......Page 112
Xcode – Beginning a New Project......Page 115
Understanding IBOutlets......Page 117
Pointers......Page 119
Properties: Management & Control......Page 121
Adding IBActions......Page 123
Coding the Implementation File......Page 124
Providing for Synthesis......Page 126
Interface Builder: Making the Connections......Page 128
Final Step: File’s Owner & uiImageView......Page 136
IBOutlets and IBActions......Page 140
More About Pointers......Page 141
In the Chapter Ahead......Page 142
Switch View with Multiple Graphics......Page 143
Preliminaries......Page 146
Name your Project “einSwitch01”......Page 151
Create the 1st UIViewController Subclass......Page 155
Create the Ein1Controller......Page 156
Create the Ein2Controller......Page 157
Make Sure Images Are Embedded......Page 158
Save Einstein2View.xib......Page 159
Drag the Images into Xcode......Page 160
Assign your Icon in the “plist”......Page 161
Code the AppViewDelegate......Page 162
Working SwitchView......Page 164
SwitchViewController and AppDelegate......Page 166
SwitchViewController Header File......Page 170
Ready for Lazy Load—Implementation File......Page 173
A Note about Comments and Lazy Loads......Page 174
Copy Contents of SwitchViewController.txt......Page 176
A Note about Apple’s Boilerplate Implementation File......Page 177
Working on the .xib Files......Page 179
Drag a View onto the Screen......Page 181
Start Working on the Einstein#View.xib Files......Page 185
Repeat Process for Second Image......Page 189
einSwitch_002—a Tab-Bar Application......Page 194
einSwitch_003—a Window-Based Application......Page 209
Digging … Your Brain......Page 225
Dragging, Rotating, and Scaling......Page 227
DragRotateAndScale—a View-Based Application......Page 228
Starting the DragRotateAndScale App......Page 229
Creating a Custom UIImageView Subclass......Page 231
Overriding – initWithImage in TransformView.m......Page 233
Creating Touch-Handling Stubs......Page 234
Translating in touchesMoved......Page 236
Creating a TransformView......Page 238
Preparing TransformView for Rotation and Scaling......Page 243
Helper Methods......Page 244
Adding to “-touchesBegan”......Page 245
Modifying -touchesMoved......Page 247
Digging the Code......Page 250
Gesture Support and the iPad......Page 251
Table Views, Navigation, and Arrays......Page 253
Table Views and Navigation Stacks......Page 256
Starting the Food App......Page 257
Adding the Category Names Array in RootViewController.h......Page 259
Creating the Categories Array in -viewDidLoad......Page 260
Setting Up Table View Data Source Methods......Page 261
Table View Delegation......Page 262
Setting up FoodTableViewController......Page 263
Creating the Convenience Constructor for the FoodTableViewController......Page 266
Data Source and Delegation for the FoodTableViewController......Page 267
Creating the FoodViewController Class......Page 268
The FoodViewController Header File......Page 269
Setting Up FoodViewController, -viewDidLoad, and the (.xib)......Page 270
Icon File......Page 272
Testing the App......Page 273
Memory Management......Page 275
Reuse Identifiers......Page 277
MapKit......Page 279
A Little about Frameworks......Page 280
Preinstalled MapKit Apps......Page 281
Find Locations......Page 282
Get Directions......Page 283
See Which Way You’re Facing......Page 284
See Traffic......Page 285
Search for a Location......Page 286
Change Your View......Page 287
Cool and Popular MapKit Apps to Inspire You......Page 288
Possible Prepping for the App......Page 289
A New View-Based Template......Page 291
Adding the Annotation File......Page 292
It’s Already Working!......Page 293
Check It Out—the iPad Simulator......Page 294
Make It Look a Little Bit Better......Page 295
Dealing with the Implementation......Page 296
Coding the myPos.h File......Page 302
The myPos.m File......Page 303
The AppDelegate Files......Page 304
Connect MapView with MKMapView......Page 305
Parsing to MapKit from the Internet......Page 308
MapKit Parsing......Page 311
Three MapKit Final Projects: CS-201 iPhone Apps, Objective-C......Page 313
Zoom Out … Seeing the Big Picture......Page 328
¦ A ¦ C......Page 331
¦ G......Page 332
¦ O......Page 333
¦......Page 334
¦ V......Page 335
📜 SIMILAR VOLUMES
There are a lot of typos and mistakes in this book including in the example code. It is really important for a book targeted towards "Absolute Beginners" to be well proofread and for the source code to be tested, this book clearly wasn't. I think the Head First iPhone book was actually easier to di
<p>The iPhone is the hottest gadget of our generation, and much of its success has been fueled by the App Store, Apple’s online marketplace for iPhone applications. Over 1 billion apps have been downloaded in the 9 months the App Store has been open, ranging from the simplest games to the most compl
<p><p>So how do you build an application for the iPhone and iPad? Don't you need to spend years learning complicated programming languages? What about Objective-C and Cocoa touch? The answer is that you don't need to know any of those things! Anybody can start building simple apps for the iPhone and
<p><p>The iPhone is the hottest gadget of our generation, and much of its success has been fueled by the App Store, Apple's online marketplace for iPhone applications. Over 1 billion apps have been downloaded in the 9 months the App Store has been open, ranging from the simplest games to the most co
This update of an Apress bestseller walks you through creating your first app, with plain English and practical examples using the latest iOS 7 software development platform and more. It cuts through the fog of jargon and misinformation that surrounds iPhone and iPad app development, and gives you s