欢迎光临
免费的PDF电子书下载网站

iOS 4 SDK入门——给JavaScript程序员(影印版) PDF下载

编辑推荐

 ; ; ; ; 《iOS4SDK入门--给JavaScript程序员(影印版)》(作者Danny Goodman)揭示你的代码如何启动iOS应用并让它们准备就绪;学习iOS内存管理,以及与JavaScript编程有所差异的Objective—C指针和数据类型;使用Objective—C和Cocoa Touch实现常见的JavaScript任务。

 ;

内容简介

 ; ; ; ; JavaScript程序员有没有可能学习Apple的iOS 4 SDK编程并且坚持到成功一刻呢?技术大师Danny Goodman做到了这一点,而且留下了这本有着清晰足迹可以让你跟随的《iOS4SDK入门--给JavaScript程序员(影印版)》(作者Danny Goodman)。作为自JavaScript诞生之日起就是权威专家的Goodman 清楚你在使用SDK创建本地iOS应用时会遇到的挑战,他使用一种你容易理解的上下文来介绍Xcode、Objective-C和Cocoa Touch。
 ; ; ; ; 当你能够简单地为Apple的iOS设备创建Web应用时,你为什么还需要顾虑SDK呢?这是因为Web应用无法访IhqiPhone的音乐库、相机,或者为地图、音频以及其他东西设计的iOS系统软件。你也无法在应用商店里销售Web应用。如果你希望发挥iPhone~liPad的全部优势,iOS 4 SDK就是你所需要的工具——而《iOS4SDK入门--给JavaScript程序员(影印版)》就是你所需要的参考书。

 ; ; ; ; JavaScript程序员有没有可能学习Apple的iOS 4 SDK编程并且坚持到成功一刻呢?技术大师Danny Goodman做到了这一点,而且留下了这本有着清晰足迹可以让你跟随的《iOS4SDK入门--给JavaScript程序员(影印版)》(作者Danny Goodman)。作为自JavaScript诞生之日起就是权威专家的Goodman 清楚你在使用SDK创建本地iOS应用时会遇到的挑战,他使用一种你容易理解的上下文来介绍Xcode、Objective-C和Cocoa Touch。
 ; ; ; ; 当你能够简单地为Apple的iOS设备创建Web应用时,你为什么还需要顾虑SDK呢?这是因为Web应用无法访IhqiPhone的音乐库、相机,或者为地图、音频以及其他东西设计的iOS系统软件。你也无法在应用商店里销售Web应用。如果你希望发挥iPhone~liPad的全部优势,iOS 4 SDK就是你所需要的工具——而《iOS4SDK入门--给JavaScript程序员(影印版)》就是你所需要的参考书。

作者简介

 ; ; ; ; Danny Goodman写了将近40本书和数以百计的在个人电脑以及消费性电子杂志上的文章。最近,他正在从事iPhone和iPod touch应用的开发工作,包括iFeltThat Earthquake、PhotoSize和BeaconAid-HF。

 ; ; ; ; Danny Goodman写了将近40本书和数以百计的在个人电脑以及消费性电子杂志上的文章。最近,他正在从事iPhone和iPod touch应用的开发工作,包括iFeltThat Earthquake、PhotoSize和BeaconAid-HF。

iOS 4 SDK入门——给JavaScript程序员(影印版) PDF下载

目录

Preface1. 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 Plunge2. 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 Projects 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 Congratulations4. 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? Recap5. App Execution Flow Some C Language Roots in an iOS App An Introduction to Delegates How UIApplication Appoints Its Delegate The Apps 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 MemoryManagement 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 Recap7. 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 Recap8. 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 Recap9. 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 RecapA. Getting the Most from Xcode DocumentationB. Common Beginner Xcode Compiler ErrorsGlossaryIndex

iOS 4 SDK入门——给JavaScript程序员(影印版) pdf下载声明

本pdf资料下载仅供个人学习和研究使用,不能用于商业用途,请在下载后24小时内删除。如果喜欢,请购买正版

pdf下载地址

版权归出版社和作者所有,下载链接已删除。如果喜欢,请购买正版!

链接地址:iOS 4 SDK入门——给JavaScript程序员(影印版)