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
-
Learning the iOS 4 SDK for JavaScript Programmers
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
- 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
- SPECIAL OFFER: Upgrade this ebook with O’Reilly
Product information
- Title: Learning the iOS 4 SDK for JavaScript Programmers
- Author(s):
- Release date: December 2010
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449302801
You might also like
book
Julia as a Second Language
Learn the awesome Julia programming language by building fun projects like a rocket launcher, a password …
book
Bricks to Clicks: Why Some Brands Will Thrive in E-Commerce and Others Won't
Learn how to sell online. Real-world case studies and market insights from the world's largest brands …
book
Designing Data-Intensive Applications
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Generative Deep Learning, 2nd Edition
Generative AI is the hottest topic in tech. This practical book teaches machine learning engineers and …