Software wealth creation password: iPhone application development strategy-objective-C 2.0 (two-color)

Source: Internet
Author: User
Tags parse error xml parser

Software wealth creation password: iPhone application development strategy-objective-C 2.0 (two-color)

After learning how to use objective-C 20 to develop your first iPhone application, you can also earn your first barrel of gold

Basic Information
  • Author:Wang Zhigang
  • Series Name:Wang Zhigang's work Series
  • Press: Electronic Industry Press
  • ISBN:9787121134692
  • Mounting time:
  • Published on: February 1, June 2011
  • Http://product.china-pub.com/193976

Introduction

The introduction to objective-C 20 (two-color) systematically introduces the basic knowledge of using objective-C 20 to develop iPhone applications, it covers basic knowledge of various development tools, such as operating skills, Framework Working Principles, software tuning skills, and post-production. The book takes a lot of time to introduce the various common class libraries necessary for developing iPhone applications. It can further deepen your understanding of these common class libraries by combining the explanations of targeted application instances.
Software rich password: iPhone application development strategy-objective-C 20 (two-color) can be used as an entry-level teaching material for iPhone application development.DirectorySoftware rich password: iPhone application development strategy-objective-C 2.0 (two-color)
Chapter 2 configure development environment 2
1.1 Mac application development environment 2
1.2 development environment for iPhone applications 3
1.3 view the content in the installation directory 5
1.3.1 start xcode 6
1.3.2 start interface builder 7
1.4 basic operations in MAC 7
1.4.1 how to display the pop-up menu 7
1.4.2 customization of tool bar 9
Chapter 2 development tools 11
2.1 xcode 11th
2.1.1 functions of xcode 11 in the integrated development environment
2.1.2 project window 12
2.1.3 functions of the text editor 16
2.1.4 developer manual 18
2.2 interface builder 20
2.3 dashcode 20
2.4 iPhone simulator 21
2.5 Other Tools 22. 2.5.1 filemerge 22
2.5.2 icon composer 23
2.5.3 property list editor 23
2.6 Mac or iPhone application development process 23
2.6.1 prepare materials for the Application 24
2.6.2 step 25
2.6.3 GCC 26
Chapter 2 Application and framework 27
3.1 about applications 27
3.1.1 application types 28
3.1.2 about iPhone application 29
3.2 framework 29
3.2.1 simple "Hello World" program 29
3.2.2 30 of the framework
3.2.3 relationship between programming languages and frameworks 30
3.3 Mac OS X and iPhone SDK framework. 31
3.3.1 framework installation directory 31
3.3.2 cocoa and carbon 32
3.3.3 framework used in applications 32
3.4 development track of cocoa and carbon 34
3.4.1 cocoa is an object-oriented framework, so it is difficult to master 35
3.4.2 carbon is developed in C. People who know the language should use carbon 35
3.4.3 carbon will disappear in the future 35
3.4.4 after the carbon application uses cocoa for rewriting, the speed will increase by 35.
3.4.5 if cocoa for Windows is used for development, the cocoa application 36 can also be run on Windows
Chapter 2 cocoa and objective-C 37
4.1 Use of the framework 37
4.1.1 about API 37
4.1.2 relationship between APIs and programming languages 39
4.2 objective-C Development History 39
4.3 for cocoa API 41 in other languages
4.3.1 call cocoa 41 Through Bridge
4.3.2 whether cocoa APIs should be called in languages other than objective-C 42
4.4 answer several questions related to objective-C 43
4.4.1 do I need to master C language and smalltalk first? 43
4.4.2 objective-C is difficult to learn. 43
4.4.3 can objective-C be widely used on Windows or Linux platforms? 44
4.4.4 will objective-C disappear in the future? 44
Chapter 4 basic concepts of cocoa Object-Oriented Programming 45
5.1 five basic object-oriented terms 45
5.1.1 class 46
5.1.2 instance 46
5.1.3 instance variable 47
5.1.4 method 48
5.1.5 inherit 48
5.1.6 interaction 49
5.1.7 object 50
5.2 understand basic terms in cocoa instances 50
5.2.1 understand basic terms through button configuration 50
5.2.2 inheritance relationship in the text input box 51
Chapter 1 Hello world application 53
6.1 about cocoa's hello World Program 53
6.2 start xcode to create a project 54
6.3 create class 56
6.3.1 create a class file 56
6.3.2 append code 56
6.4 start interface builder to Design User Interface 58
6.4.1 XIB file 58
6.4.2 interface builder window. 59
6.4.3 design the hello World User Interface 61
6.5 class instantiation 62
6.6 socket connection and action 64
6.7 complete coding of appcontroller 67
6.8 establish and run 67
6.9 development steps review 69
Chapter 2 MVC Architecture 70
7.1 information contained in the Hello world application development process 70
7.2 what is MVC Architecture 70
7.2.1 view layer 71
7.2.2 model layer 71
7.2.3 control layer 72
7.3 Example 72 using the MVC Architecture
7.3.1 iTunes model 72
7.3.2 view 73 of iTunes
7.3.3 iTunes control 74
7.4 features of cocoa application development using MVC Framework 75
7.4.1 The View component is provided by cocoa 75
7.4.2 maintain mutual independence between views and models 75
7.4.3 application-specific functions provided by control 75
7.4.4 create models and control classes only 76
Chapter 4 socket and action 77
8.1 information exchange between views and controls 77
8.2 socket and action 78
8.2.1 what is socket 78
8.2.2 what is action 78
8.3 socket and action connection 79
8.3.1 socket and action appending 79
8.3.2 socket connection 80
8.3.3 action connection 81
8.3.4 Connection Confirmation 82
Chapter 2 C language syntax 85
9.1 Introduction to C language 85
9.1.1 C language development process 85
9.1.2 features of C language 85
9.1.3 structure characteristics of C source code 86
9.1.4 c Source Code Composition Rule 89
9.1.5 C Language Character Set 89
9.1.6 C Language Vocabulary 90
9.2 Data Type 92
9.2.1 Basic Data Type 92
9.2.2 basic operators and expressions. 98
9.2.3 Relational operators and Expressions 101
9.2.4 logical operators and expressions 102
9.3 array 103
9.3.1 one-dimensional array 103
9.3.2 2D array 104
9.3.3 character array 104
9.4 pointer 104
9.4.1 basic concepts of pointers 105
9.4.2 pointer variable type declaration 105
9.4.3 assign a value of 106 to the pointer variable
9.4.4 differences between using string pointer variables and character arrays 106
9.5 C Language Output statement printf () function 107
9.5.1 general form of printf () function call 107
9.5.2 format: String 107
9.5.3 instance output 109
9.6 control statement 110
9.6.1 if statement 110
9.6.2 switch statement 113
9.6.3 while statement 115
9.6.4 do... While statement 116
9.6.5 for statement 117
9.7 function 119
9.7.1 function syntax 120
9.7.2 declaration and entity 121 of functions
9.7.3 variable parameters 122
9.7.4 standard function library 122
9.8 structure 123
9.8.1 structure definition 123
9.8.2 declaration of structure type variables 124
9.8.3 values and values of Structure Variables: 125
9.9 create and learn C language projects in xcode 125
Chapter 2 objective-C syntax 10th
10.1 Introduction to objective-C Programming 129
10.1.1 objective-C and C language 129
10.1.2 objective-C program 129
10.1.3 class declaration and entity 130
10.1.4 create an objective-C test project 130
10.2 class declaration 135
10.2.1 import declaration file 135
10.2.2 class declaration 136
10.2.3 declaration of instance variables 137
10.2.4 instance method declaration 137
10.3 compile the entity of the class 142
10.3.1 compile the entity 142 of the class
10.3.2 Writing Method Code 143
10.3.3 method declaration 144
10.4 object dedicated variable type 144
10.4.1 variable type dedicated to instance objects 144
10.4.2 ID type 145
10.4.3 nil type 145
10.4.4 use object variable 145 in conditional expressions
10.5 method call 146
10.5.1 instance method call 146
10.5.2 class method call 147
10.5.3 if the object is nil, 148
10.6 naming Rules 148
10.6.1 class naming Rule 148
10.6.2 naming rule for instance variables 149
10.6.3 naming Rule 149
10.7 re-Parse cocoa Hello World Program 150
10.7.1 appcontroller. H 150
10.7.2 appcontroller. m 151
Chapter 4 Memory Management 11th
11.1 memory allocation and release 153
11.2 memory-related problems 154
11.2.1 memory release time: 154
11.2.2 Memory leakage 155
11.3 use garbage collection for Memory Management 155
11.3.1 garbage collection 155
11.3.2 objective-C and garbage collection 157
11.3.3 efficiency of the garbage collection function: 158
11.3.4 garbage collection programming Rule 159
11.4 memory management implemented by reference statistics 159
11.4.1 basic concepts of Statistics 159
11.4.2 retain and release method 160
11.4.3 process for Keeping objects to release 160
11.5 class instantiation 162
11.5.1 class instantiation and initialization 162
11.5.2 automatic release 163
11.5.3 method for creating an instance 164
11.5.4 instance release 165
11.6 Memory Management Rules 166
11.6.1 temporary object 166
11.6.2 experience in memory management 168
Chapter 2 string 12th
12.1 special string class 169
12.2 nsstring and nsmutablestring 170
12.3 character encoding 170
12.3.1 what is character encoding 170
12.3.2 the nsstring character code is Unicode 171
12.3.3 nsstringencoding 171
12.4 string generation 172
12.4.1 create a new string 172 in the form @ ""
12.4.2 create Chinese string 173
12.4.3 use format to create string 174
12.5 nsange 176
12.6 string processing 177
12.6.1 calculate the string length by 177
12.6.2 string connection, insertion, and deletion 178
12.6.3 string comparison 181
12.6.4 string retrieval 183
12.6.5 extract some strings 184
12.7 read/write a text file 186
12.7.1 read text file 186
12.7.2 output text 187
Chapter 1 Set 13th
13.1 array 189
13.1.1 nsarray & nsmutablearray 189
13.1.2 create an array 190
13.1.3 the length of the array is 191
13.1.4 get object 192 Through Index
13.1.5 use nsenumerator to get object 193
13.1.6 use the high-speed enumeration method to get object 196
13.1.7 append and delete objects 197
13.2 dictionary 199
13.2.1 what is the dictionary type 199
13.2.2 nsdictionary and nsmutabledictionary 200
13.2.3 nsdictionary creation 200
13.2.4 obtain 202 of keys and values
13.2.5 add 203 of key and Value
13.3 packaging class 205
13.3.1 what is packaging 205
13.3.2 nsnumber 205
13.4 The object is equivalent to 208 of the same value
13.4.1 208 of objects with the same value
13.4.2 equivalent value: 208 of the same value
13.4.3 application in the Collection class 210
13.5 collection classes and reference statistics 210
13.5.1 nsarray and reference statistics 210
13.5.2 nsdictionary and reference statistics 212
Chapter 2 XML application 14th
14.1 XML summary 213
14.1.1 what is XML 213
14.1.2 a common XML instance-RSS 213
14.2 XML parsing 215
14.2.1 resolution and parser 215
14.2.2 type of XML Parser 215
14.2.3 tree 216
14.3 XML Parser 218 in cocoa
14.3.1 nsxmldocument, nsxmlnode, and nsxmlelement 218
14.3.2 parser 219 for XML documents
14.3.3 path 221
14.3.4 node information 222
14.3.5 node parent-child relationship 223
14.3.6 obtain 225 of the attribute values
Chapter 2 Table view 15th
15.1 table view 227
15.1.1 nstableview and nstablecolumn 227
15.1.2 table structure 229
15.2 data resources 229
15.2.1 use data resources in the table 229
15.2.2 method of data resource 230
15.2.3 nstableview method 231
15.3 instance 231
15.3.1 data resource settings 238
15.3.2 numberofrowsintableview: 238
15.3.3 tableview: objectvaluefortablecolumn: row: 239
15.3.4 click the read button to Process Code 242
Chapter 2 Introduction to The uikit framework and how to create an iPhone table view 16th
16.1 uikit summary 246
16.1.1 list of classes in the uikit framework 246
16.1.2 difference between the uikit framework and the appkit framework 249
16.2 create a test project for testing the uikit class 250
16.2.1 create the first iPhone application -- Hello World project 251
16.2.2 modify the hello World project to make it an experiment project that does not use the XIB file 256
16.3 create the simplest table 261
16.3.1 create table 262
16.3.2 action 265 when appending a selected unit
16.4 iPhone table view reference 265
16.4.1 uitableview class 266
16.4.2 uitableviewcell class 272
16.4.3 uitableviewcontroller category 279
16.4.4 uitableviewdatasource 280 protocol type
16.4.5 uitableviewdelegate Protocol Class 284
Chapter 2 Common Errors and warnings 17th
17.1 what are errors and warnings 287
17.2 errors and warnings in xcode 287
17.2.1 error and warning display method 288
17.2.2 result creation window 288
Display 289 In the 17.2.3 code window
17.3 common error message 290
17.3.1 'xxx' undeclared (first use in this function). 290
17.3.2 Parse error before 'xxx' token 291
17.3.3 invalid preprocessing directive # XXX 291
17.3.4 no such file or directory 292
17.3.5 undefined symbols 292
17.4 frequent alerts 293
17.4.1 'xxx' may not respond to 'yyy' 293
17.4.2 unused variable 'xxx '294
17.4.3 local declaration of 'xxx' hides instance variable 295
17.4.4 incomplete implementation of class 'xxxx' 296
17.4.5 control reaches end of non-void function 297
17.4.6 passing argument n of 'xxx' assignment from
Distinct objective-C type 298
Chapter 1 debugging method 18th
18.1 defects and debugging 299
18.1.1 what are defects and debugging 299
18.1.2 describe defect 300
18.1.3 reproduction of defect 300
18.2 nslog 301
18.2.1 use nslog to output debugging information 301
18.2.2 nslog format 302
18.3 debugging tool 304
18.3.1 what is debugging tool 304
18.3.2 debug build configuration 305
18.3.3 breakpoint and debug mode startup 305
18.3.4 debugging page 306
18.3.5 step-by-step debugging 308
18.4 exception 309
18.4.1 what is exception 309
18.4.2 catch exception 309
18.4.3 stop running when exceptions occur 312
18.4.4 avoid using too many exceptions 313
Chapter 2 post-production of applications 19th
19.1 application icon 314
19.1.1 create an image of 315 icon
19.1.2 creation of icon format files 316
Add an image file to the project 317
19.2 application settings 317
19.2.1 what is target 317
19.2.2 target-related application settings 318
19.2.3 info. plist 321
19.3 localization 322
19.3.1 what is localization 322
19.3.2 User Interface localization 323
19.3.3 localized application name 326
19.3.4 localized test 328
19.4 build configuration 329
19.4.1 what is build configuration 329
19.4.2 set the build configuration to release 329
19.5 completed applications 330
Appendix A added to iPhone developer program 331
Index 337

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.