iOS 4 SDK入門

出版時間:2011-5  出版社:東南大學(xué)出版社  作者:古德曼  頁數(shù):297  
Tag標(biāo)簽:無  

內(nèi)容概要

JavaScript程序員有沒有可能學(xué)習(xí)Apple的iOS 4
SDK編程并且堅持到成功一刻呢?技術(shù)大師Danny
Goodman做到了這一點,而且留下了這本有著清晰足跡可以讓你跟隨的《iOS4SDK入門--給JavaScript程序員(影印版)》(作者Danny
Goodman)。作為自JavaScript誕生之日起就是權(quán)威專家的Goodman
清楚你在使用SDK創(chuàng)建本地iOS應(yīng)用時會遇到的挑戰(zhàn),他使用一種你容易理解的上下文來介紹Xcode、Objective-C和Cocoa
Touch。
當(dāng)你能夠簡單地為Apple的iOS設(shè)備創(chuàng)建Web應(yīng)用時,你為什么還需要顧慮SDK呢?這是因為Web應(yīng)用無法訪IhqiPhone的音樂庫、相機,或者為地圖、音頻以及其他東西設(shè)計的iOS系統(tǒng)軟件。你也無法在應(yīng)用商店里銷售Web應(yīng)用。如果你希望發(fā)揮iPhone~liPad的全部優(yōu)勢,iOS
4 SDK就是你所需要的工具——而《iOS4SDK入門--給JavaScript程序員(影印版)》就是你所需要的參考書。

作者簡介

Danny
Goodman寫了將近40本書和數(shù)以百計的在個人電腦以及消費性電子雜志上的文章。最近,他正在從事iPhone和iPod
touch應(yīng)用的開發(fā)工作,包括iFeltThat Earthquake、PhotoSize和BeaconAid-HF。

書籍目錄

Preface
1. Why Go Native?
Using an App Offline
More Access to the Hardware
More Access to the Software
What You Lose
Distribution
Apple iOS Developer Program
Content
Authoring Platform Choices
Taking the Plunge
2. Welcome to the iOS SDK
Hardware and OS Requirements
Installing the SDK
About iOS Developer Programs
Inside the SDK
Viewing Developer Documentation
Loading Code Samples
Setting the Project's Base SDK
Trying the iOS Simulator
Coming Up..
3. Creating a Test Workbench
Creating the Project in Xcode
Selecting a Project Type
Naming and Saving the New Project
Welcome to Your Project
Editing Your First Files
What the runMyCode: Method Does
Building the User Interface
Adding a Button to the View
Connecting the Button
Going for a Test Ride
Congratulations
4. Structural Overview of an iOS App
Where It All Begins: APIs
APIs You Already Know
The Cocoa Touch APIs
Frameworks
Foundation Framework
UIKit Framework
CoreGraphics Framework
Adding Frameworks
Frameworks Set in Stone
Welcome to Class Files
The JavaScript Way
The Objective-C Way
Header File Details
Using Xcode to Create DGCar Class Files
Editing the @interface Section
Message Passing
Editing the @implementation Section
Integrating the DGCar Class into Workbench
Creating Object Instances
NSLog0 and String Formats
Running the Code
What About Accessing Instance Variables?
Recap
5. App Execution Flow
Some C Language Roots in an iOS App
An Introduction to Delegates
How UIApplication Appoints Its Delegate
The App's Info.plist File
Inside MainWindow.xib
iPhone App Development Design Patterns
The Model-View-Controller Design Pattern
Other Design Patterns
The Importance of Views
The App Window--UIWindow
Adding Another View to Workbench
Recap
6. Central Objective-C Concepts: Pointers, Data Types, and Memory
Management
107
Pointers
Pointers and Memory
Pointers and Objective-C Variables
Pointer Notation
Determining Pointer Usage
Data Typing
Objective-C Data Types
Cocoa Touch Data Types
Objective-C Variable Declarations
Objective-C Method Declarations
The id Data Type
Converting Objective-C Data Types
Memory Management
Cleaning Up After Yourself
The Retain Count
Autorelease Pools
Observing Memory Usage
Recap
7. C Language Fundamentals
Variable Names
Variable Scope
Instance Variables
Local Variables
Local Variables in Control Structure Blocks
Static Local Variables
Global Variables
Constant Values
Functions
C Structures
C Arrays
Enumerated Types
Operators
Program Flow Constructions
Boolean Values
Math Object Equivalents in C
Inserting Comments
Recap
8. Objective-C/Cocoa Touch Fundamentals
More About Classes
Temporary Objects
Subclassing Framework Classes
Defining Your Own Custom Subclasses
Adding to a Class Without Subclassing--Categories
Real Classes in Real Action
TheElements Overview
TheElements Class File Structure
Class Properties
Specifying Properties in the Header File
Synthesizing Properties in the Implementation File
Using Properties
Properties in Framework Classes
About NSString
Creating an NSString
JavaScript String Method Equivalents in Objective-C
NSMutableString
About NSArray
Creating an NSArray
Retrieving Array Elements
JavaScript Array Method Equivalents in Objective-C
NSMutableArray
About NSDictionary
Creating an NSDictionary
Retrieving Dictionary Entries
NSMutableDictionary
Arrays and Dictionaries in Action
Recap
9. Common JavaScript Tasks in Cocoa Touch
Formatting Numbers for Display
Preformatted Number Styles
Rounding Numbers for Display
Creating a Date Object
Adding a UIDatePicker to Workbench
Understanding NSDate
Creating a Date Object for a Specific Date
Extracting Components from an NSDate Object
Creating NSDate Objects from Strings
Converting an NSDate to a String
Calculating Dates
10 Days in the Future
Days Between Dates
Comparing Dates
Downloading Remote Files Asynchronously
Example Project
Creating the Request
Initializing the NSMutableData Object
Delegate Methods
Downloading Only When Needed
Accounting for Fast App Switching
Reading and Writing Local Files
lOS App Directories
Obtaining Directory Paths
Obtaining Paths to Files Delivered with Your App
Writing Files to Disk
Reading Files from Disk
Writing and Reading Property List Files
Performing File Management Tasks
Sorting Arrays
Sorting with a Selector
Sorting with a Function
Sorting Arrays of Dictionaries with NSSortDescriptor
Capturing User-Entered Text
The Code Portion
The Interface Builder Portion
Validating Text Entry with Regular Expressions
Modifying the Code
Modifying the User Interface
Using Regular Expressions for Text Search and Replace
Dragging a View Around the Screen
The Code Portion
The Interface Builder Portion
Recap
A. Getting the Most from Xcode Documentation
B. Common Beginner Xcode Compiler Errors
Glossary
Index

章節(jié)摘錄

版權(quán)頁:插圖:Perhaps because my programming knowledge has been completely self-taught over the decades, this book does not follow what some might term traditional programming language training. First of all, you already come to the book with specialized knowledge.The goal of the book is to pick up where that knowledge leaves off and fill in the gaps with the new material. There's no doubt about it: there is a lot of new material for you.But I have tried to establish a learning progression that will make sense and keep you interested while you learn the decidedly unglamorous——but essential——parts of iOS programming.Chapter 1 goes into detail about the differences between web app and native app pro-gramming for devices running iOS. It's not all roses for native app development, as you'll see, but I believe the positives outweigh the negatives. In Chapter 2, you will install the iOS SDK, inspect one of the sample apps, and run it on the iOS Simulator.Then in Chapter 3, I put you to work to create your first iPhone app——-the Workbench app that you'll use throughout the rest of the book. The steps are intended to help you get more comfortable with Xcode and learn what it's like to work on an app in the environment.

媒體關(guān)注與評論

每一個有Web開發(fā)背景并且希望進(jìn)入到本地應(yīng)用編程的人都應(yīng)該跟隨Danny調(diào)查好的方法來學(xué)習(xí)這個平臺。這是任何一個有經(jīng)驗的期待展開AppStfore之旅的JavaScript程序員的最佳指南?!薄  狥oddMoore.whiteNoise應(yīng)用的創(chuàng)建者

編輯推薦

《iOS 4 SDK入門:給JavaScript程序員(影印版)》:了解Web應(yīng)用和iOS本地應(yīng)用編程的差異,創(chuàng)建一個工作臺應(yīng)用來測試貫穿整個學(xué)習(xí)過程的代碼段,理解iOS應(yīng)用的結(jié)構(gòu),比較通過Objective-C和JavaScript搭建對象的過程,揭示你的代碼如何啟動iOS應(yīng)用并讓它們準(zhǔn)備就緒,學(xué)習(xí)iOS內(nèi)存管理,以及與JavaScrIpt編程有所差異的Objective-C指針和數(shù)據(jù)類型,使用Objective-C和Cocoa 10ucrl實現(xiàn)常見的Javascript任務(wù)。

圖書封面

圖書標(biāo)簽Tags

評論、評分、閱讀與下載


    iOS 4 SDK入門 PDF格式下載


用戶評論 (總計4條)

 
 

  •   這本書寫得太好了,自從學(xué)了這本書,我就會開發(fā)iOS應(yīng)用了。
  •   很多時候,會找這樣一本工具書
    內(nèi)容全面,而且不是很艱澀的語言。
    雖然這本書是英文的,但是還是很淺顯易懂的,
    有些內(nèi)容,哪怕只看代碼,也看得懂。

    雖然是全英文版的,看起來有一點累,
    但是慢慢的看下來,的確受益匪淺。
    這是我的第三本ios教程,是最全面的一本,里面有些內(nèi)容是其他書上所沒有的。
  •   多數(shù)都是用OC寫的ios程序,
    但是這本書例外,用java來講解,
    覺得特別親切,也就看的特別認(rèn)真。
  •   你妹的全英文,傷不起!
 

250萬本中文圖書簡介、評論、評分,PDF格式免費下載。 第一圖書網(wǎng) 手機版

京ICP備13047387號-7