OReilly:iOS 4 SDK入门:给javascript程序员(影印版)
定 价:68 元
- 作者:(美),古德曼 著
- 出版时间:2011/5/1
- ISBN:9787564127107
- 出 版 社:东南大学出版社
- 中图法分类:TP312
- 页码:297
- 纸张:胶版纸
- 版次:1
- 开本:16开
JavaScript程序员有没有可能学习Apple的iOs4sDK编程并且坚持到成功一刻呢?技术大师DannyGoodman做剑了这一点,而且留下了这本有着清晰足迹可以让你跟随的书。作为自JavaScript诞生之日起就是权威专家的Goodman清楚你在使用sDK创建本地ios应用时会遇列的挑战,他使用·种你容易理解的上下文来介绍xcode、OObictiVe-C和CocoaTouch。当你能够简单地为Apple的iOS设备创建Web应用时,你为什么还需要顾虑SDK呢?这是因为Web应用无法访问iPhone音乐库、相机,或者为地图、音频以及其他东西设计的ios系统软件。你也无法在应用商店里销售Web应用。如果你希望发挥iPhone和iPad的全部优势,ios4sDK就是你所需要的工具一一而《iOS 4 SDK入门:给JavaScript程序员(影印版)》就是你所需要的参考书。
了解Web应用和iOS本地应用编程的差异 创建一个工作台应用来测试贯穿整个学习过程的代码段 理解iOS应用的结构,比较通过Objective-C和javascript搭建对象的过程 揭示你的代码如何启动iOS应用并让它们准备就绪 学习iOS内存管理,以及与javascript编程有所差异的Objective-C指针和数据类型 使用Objective-C和Cocoa 10ucrl实现常见的javascript任务 每一个有Web开发背景并且希望进入到本地应用编程的人都应该跟随Danny调查好的方法来学习这个平台。这是任何一个有经验的期待展开AppStfore之旅的javascript程序员的最佳指南。” ——FoddMoore. whiteNoise应用的创建者 Danny Goodman写了将近40本书和数以百计的在个人电脑以及消费性电子杂志上的文章。最近,他正在从事iPhone和iPodtouch应用的开发工作,包括iFeltThat Earthquake、Phot0Sizee和BeaconAid-HF。
Preface
1.WhVGo Native?
Using an App Offline
More ACCCSS to the Hardware
More Access tO the Software
What Yon Lose
Distribution
Apple iOS Developer Program
Content
Authoring Platform Choices
Taking the Plunge
2.WelcometotheiOSSDK
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 aTestWorkbench
Creating the Project in Xcode
Selecting a Proj ect Type
Naming and Saving the New Project
Welcome tO Your Proj ect
Editing Your First Files
What the runMyCode:Method Does
Building the User Interfaca
Adding a Button to the View
Connecting the Button
Going for a Test Ride
Congratulations
4.StructuralOverviewofaniOSApp
Where It A11 Begins:APIs
APIs Yon 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 Wav
The Obi ective—C Wav
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 Obj ect Instances
NSLog and String Formats
Running the Code
What About Accessing Instance Variables?
Recap
5.App Execution Flow
Some C Language Roots in an lOS 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 Windo、v—UIWindow
Adding Another View to Workbench
……