Book description
Is it possible for JavaScript programmers to learn Apple's iOS 4 SDK and live to tell the tale? Technology guru Danny Goodman did, and with this book he leaves a well-marked trail for you to follow. An authority on JavaScript since its inception, Goodman understands the challenges you might face in creating native iOS apps with this SDK, and introduces Xcode, Objective-C, and Cocoa Touch in a context you'll readily understand.
Why bother with the SDK when you can simply build web apps for Apple's iOS devices? Web apps can't access an iPhone's music library, camera, or iOS system software for maps, audio, and more. Nor can you sell web apps in the App Store. If you want to take full advantage of the iPhone and iPad, iOS 4 SDK is your tool -- and this is your book. Includes full coverage of iOS SDK 4.2.
- Learn the distinction between web app and iOS native app programming
- Create a workbench app to test code snippets throughout the learning process
- Get a structural view of an iOS app, and compare the process of building objects in Objective-C versus JavaScipt
- Discover how your code launches iOS apps and makes them user-ready
- Learn about iOS memory management details that are different from JavaScript, including pointers and data types
- Use Objective-C and Cocoa Touch to implement common JavaScript tasks
Table of contents
- A Note Regarding Supplemental Files
- Preface
- 1. Why Go Native?
- 2. Welcome to the iOS SDK
- 3. Creating a Test Workbench
- 4. Structural Overview of an iOS App
- 5. App Execution Flow
- 6. Central Objective-C Concepts: Pointers, Data Types, and Memory Management
- 7. C Language Fundamentals
- 8. Objective-C/Cocoa Touch Fundamentals
-
9. Common JavaScript Tasks in Cocoa Touch
- Formatting Numbers for Display
- Creating a Date Object
- Calculating Dates
- Downloading Remote Files Asynchronously
- Reading and Writing Local Files
- Sorting Arrays
- Capturing User-Entered Text
- Validating Text Entry with Regular Expressions
- Using Regular Expressions for Text Search and Replace
- Dragging a View Around the Screen
- Recap
- A. Getting the Most from Xcode Documentation
- B. Common Beginner Xcode Compiler Errors
- Glossary
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: Learning the iOS 4 SDK for JavaScript Programmers
- Author(s):
- Release date: December 2010
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449388454
You might also like
book
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
book
Software Engineering at Google
Today, software engineers need to know not only how to program effectively but also how to …
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Observability Engineering
Observability is critical for engineering, managing, and improving complex business-critical systems. Through this process, any software …