图书介绍

iOS4SDK入门 给JavaScript程序员 影印版【2025|PDF|Epub|mobi|kindle电子书版本百度云盘下载】

iOS4SDK入门 给JavaScript程序员 影印版
  • (美)古德曼著 著
  • 出版社: 南京:东南大学出版社
  • ISBN:9787564127107
  • 出版时间:2011
  • 标注页数:297页
  • 文件大小:48MB
  • 文件页数:315页
  • 主题词:JAVA语言-程序设计-英文

PDF下载


点此进入-本书在线PDF格式电子书下载【推荐-云解压-方便快捷】直接下载PDF格式图书。移动端-PC端通用
种子下载[BT下载速度快]温馨提示:(请使用BT下载软件FDM进行下载)软件下载地址页直链下载[便捷但速度慢]  [在线试读本书]   [在线获取解压码]

下载说明

iOS4SDK入门 给JavaScript程序员 影印版PDF格式电子书版下载

下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。

建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!

(文件页数 要大于 标注页数,上中下等多册电子书除外)

注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具

图书目录

1.Why Go Native?1

Using an App Offline2

More Access to the Hardware3

More Access to the Software4

What You Lose6

Distribution7

Apple iOS Developer Program8

Content8

Authoring Platform Choices8

Taking the Plunge9

2.Welcome to the iOS SDK11

Hardware and OS Requirements11

Installing the SDK12

About iOS Developer Programs12

Inside the SDK14

Viewing Developer Documentation15

Loading Code Samples18

Setting the Project's Base SDK21

Trying the iOS Simulator22

Coming Up...24

3.Creatinga Test Workbench25

Creating the Project in Xcode26

Selecting a Project Type26

Naming and Saving the New Project29

Welcome to Your Project29

Editing Your First Files31

What the runMyCode:Method Does34

Building the User Interface35

Adding a Button to the View38

Connecting the Button42

Going for a Test Ride46

Congratulations49

4.Structural Overview of an iOS App51

Where It All Begins:APIs51

APIs You Already Know51

The Cocoa Touch APIs52

Frameworks53

Foundation Framework54

UIKit Framework54

CoreGraphics Framework55

Adding Frameworks55

Frameworks Set in Stone56

Welcome to Class Files57

The JavaScript Way57

The Objective-C Way58

Header File Details61

Using Xcode to Create DGCar Class Files65

Editing the@interface Section68

Message Passing70

Editing the@implementation Section70

Integrating the DGCar Class into Workbench75

Creating Object Instances76

NSLog()and String Formats77

Running the Code78

What About Accessing Instance Variables?79

Recap81

5.App Execution Flow83

Some C Language Roots in an iOS App83

An Introduction to Delegates85

How UIApplication Appoints Its Delegate87

The App's Info.plist File87

Inside MainWindow.xib88

iPhone App Development Design Patterns92

The Model-View-Controller Design Pattern92

Other Design Patterns94

The Importance of Views95

The App Window-—UIWindow96

Adding Another View to Workbench97

Recap106

6.Central Objective-C Concepts:Pointers,Data Types,and Memory Management107

Pointers108

Pointers and Memory108

Pointers and Objective-C Variables110

Pointer Notation111

Determining Pointer Usage113

Data Typing115

Objective-C Data Types116

Cocoa Touch Data Types116

Objective-C Variable Declarations118

Objective-C Method Declarations118

The id Data Type122

Converting Objective-C Data Types123

Memory Management125

Cleaning Up After Yourself125

The Retain Count127

Autorelease Pools129

Observing Memory Usage130

Recap131

7.C Language Fundamentals133

Variable Names133

Variable Scope136

Instance Variables137

Local Variables137

Local Variables in Control Structure Blocks138

Static Local Variables140

Global Variables140

Constant Values141

Functions142

C Structures148

C Arrays151

Enumerated Types152

Operators153

Program Flow Constructions153

Boolean Values154

Math Object Equivalents in C155

Inserting Comments157

Recap157

8.Objective-C/Cocoa Touch Fundamentals159

More About Classes159

Temporary Objects160

Subclassing Framework Classes161

Defining Your Own Custom Subclasses162

Adding to a Class Without Subclassing—Categories166

Real Classes in Real Action168

TheElements Overview168

TheElements Class File Structure171

Class Properties175

Specifying Properties in the Header File176

Synthesizing Properties in the Implementation File178

Using Properties178

Properties in Framework Classes180

About NSString181

Creating an NSString182

JavaScript String Method Equivalents in Objective-C185

NSMutableString189

About NSArray190

Creating an NSArray192

Retrieving Array Elements193

JavaScript Array Method Equivalents in Objective-C193

NSMutableArray194

About NSDictionary195

Creating an NSDictionary195

Retrieving Dictionary Entries197

NSMutableDictionary198

Arrays and Dictionaries in Action199

Recap201

9.Common JavaScriptTasksinCocoaTouch203

Formatting Numbers for Display203

Preformatted Number Styles204

Rounding Numbers for Display206

Creating a Date Object207

Adding a UIDatePicker to Workbench207

Understanding NSDate210

Creating a Date Object for a Specific Date211

Extracting Components from an NSDate Object213

Creating NSDate Objects from Strings214

Converting an NSDate to a String217

Calculating Dates219

10 Days in the Future219

Days Between Dares220

Comparing Dates221

Downloading Remote Files Asynchronously222

Example Project223

Creating the Request224

Initializing the NSMutableData Object225

Delegate Methods226

Downloading Only When Needed228

Accounting for Fast App Switching231

Reading and Writing Local Files233

iOS App Directories233

Obtaining Directory Paths235

Obtaining Paths to Files Delivered with Your App236

Writing Files to Disk236

Reading Files from Disk238

Writing and Reading Property List Files239

Performing File Management Tasks240

Sorting Arrays241

Sorting with a Selector241

Sorting with a Function243

Sorting Arrays of Dictionaries with NSSortDescriptor245

Capturing User-Entered Text246

The Code Portion247

The Interface Builder Portion250

Validating Text Entry with Regular Expressions251

Modifying the Code253

Modifying the User Interface255

Using Regular Expressions for Text Search and Replace255

Dragging a View Around the Screen258

The Code Portion259

The Interface Builder Portion264

Recap265

A.Getting the Most from Xcode Documentation267

B.Common Beginner Xcode Compiler Errors277

Glossary281

Index285

热门推荐