Objective-C beginner's Guide (version 2nd)
Basic Information
Original Title: Objective-C for absolute beginners: iPhone, iPad, and Mac programming made easy, Second Edition
Author: (US) bernett (Bennett, G.) (US) Fisher (Fisher, M.) (US) lies (Lees, B.) [Translator's introduction]
Series name: Turing programming Series
Press: People's post and telecommunications Press
ISBN: 9787115293558
Mounting time:
Published on: February 1, October 2012
Start: 16
Page number: 1
Version: 1-1
Category: Computer
More about "objective-C beginner's Guide (version 2nd)"
Introduction
Books
Computer books
In recent years, the mobile development boom has swept the world. Apple's iOS has become the preferred platform for mobile development because of its powerful and complete functions. To embark on Apple's mobile app development journey, understanding the features of objective-C programming language and IOS is the top priority, and this is exactly what I wrote.
Objective-C beginner's Guide (version 2nd) explains the basic concepts of object-oriented programming, the syntax and language features of objective-C, and how to use xcode to integrate the development environment. This book focuses on practice and contains a large number of sample code and diagrams, encouraging developers to write their own programs. The exercises at the end of each chapter will help readers consolidate their knowledge.
Objective-C beginner's Guide (version 2nd) is an excellent guide for objective-C beginners and a preferred reference for mobile app enthusiasts.
Directory
Objective-C beginner's Guide (version 2nd)
Chapter 1 becoming an excellent iOS or Mac Programmer 1
1.1 think like a developer 1
1.2 completion of development cycle 4
1.3 introduction to Object-Oriented Programming 5
1.4 manipulate Alice interface 7
1.5 Conclusion 9
1.6 exercise 9
Chapter 2 programming basics 10
2.1 roaming Wonderland 10 with Alice
2.1.1 navigation menu 11
2.1.2 world window 11
2.1.3 classes, objects, and instances in Alice 13
2.1.4 Object Tree 14
2.1.5 editing Area 14
2.1.6 detail Area 15
2.1.7 event region 15
2.2 create a Alice Application -- moon landing 16
2.3 your first objective-C program 20
2.4 conclusion 26
. 2.5 exercise 27
Chapter 2 Data 28
3.1 digital systems used in programming 28
3.1.1 bit 28
3.1.2 bytes 30
3.1.3 hexadecimal count 31
3.1.4 Unicode 32
3.2 data type 32
3.3 Use variables and Data Types in Alice 33
3.4 Data Type and objective-C 40
3.5 identify the problem 44
3.6 Conclusion 45
3.7 exercise 45
Chapter 4 Decision and plan of program flow 46
4.1 boolean logic 46
4.1.1 truth table 47
4.1.2 comparison operator 49
4.2 Application Design 49
4.2.1 pseudocode 50
4.2.2 design requirements 51
4.2.3 flowchart 54
4.2.4 example application design and flowchart 55
4.2.5 application design 55
4.2.6 repeating program statements using loops 56
4.3 Sample Application Program Implementation in Alice 58
4.4 Program Implementation of the sample application in objective-C 60
4.4.1 nested if statement and else-If statement 62
4.4.2 Delete extra characters 62
4.4.3 code 63 improved through refactoring
4.4.4 run the application 63
4.5 goodbye to Alice 64
4.6 conclusion 64
4.7 exercise 65
Chapter 2 object-oriented programming based on objective-C 66
5.1 object 66
5.2 what is Category 67
5.3 category design 68
5.3.1 attribute design 68
5.3.2 method design 70
5.3.3 class implementation 71
5.4 inherit 76
5.5 why use OOP 77
5.5.1 it is everywhere 77
5.5.2 Remove redundant Code 77
5.5.3 convenient debugging 77
5.5.4 convenient replacement 78
5.6 high-level question 78
5.6.1 interface 78
5.6.2 polymorphism 78
5.7 summary 78
5.8 exercise 79
Chapter 2 objective-C and xcode 80
6.1 objective-C Brief History 80
6.2 symbols for understanding languages 81
6.3 object-oriented concept 82
6.4 Use xcode to write another program 86
6.5 conclusion 98
6.6 exercise 99
Chapter 2 objective-C classes, objects, and Methods 7th
7.1 create objective-C Class 100
7.1.1 declare the interface and instance variable 101
7.1.2 send message (method) 102
7.1.3 use of files 104
7.1.4 encoding 105
7.2 use of new classes 106
7.2.1 Create Project 106
7.2.2 add object 109
7.2.3 complete implementation file 111
7.2.4 create user interface 113
7.2.5 connection code 116
7.2.6 run program 120
7.2.7 give full play to the role of class methods 121
7.3 access xcode documentation 121
7.4 conclusion 122
7.5 exercise 122
Chapter 2 objective-C Programming basics 8th
8.1 collection class 123
8.1.1 nsset 124
8.1.2 use nsarray 125
8.1.3 nsdictionary 126
8.1.4 determine the type of the Set element 127
8.2 use variable class 127
8.2.1 nsm-utableset 127
8.2.2 nsmutablearray 128
8.2.3 nsmutabledictionary 129
8.3 create a bookstore application 130
8.4 introduce instance variable 134
8.4.1 access instance variable 134
8.4.2 use acquisition method and setting method 135
8.5 introduce attribute 137
8.5.1 attribute usage 138
8.5.2 understand the importance of conventions 139
8.6 complete mybookstore program 139
8.6.1 create view 140
8.6.2 add instance variable 141
8.6.3 add description 142.
8.6.4 create a simple data model class 144
8.6.5 change masterviewcontroller 147
8.6.6 change detailviewcontroller 151
8.7 Conclusion 152
8.8 exercise 152
Chapter 1 comparison data 9th
9.1 Review boolean logic 153
9.2 use Relational operators 154
9.2.1 compare value 154
9.2.2 create example xcode application 155
9.3 use a Boolean expression 158
9.3.1 compare string 159
9.3.2 Date of comparison 161
9.3.3 comparison 163
9.4 use switch statement 164
9.5 Conclusion 165
9.6 exercise 166
Chapter 4 create a user interface 10th
10.1 understanding interface builder 168
10.2 model? View? Controller 168
10.3 human-computer interaction interface rules (HIG) 170
10.4 create an iPhone sample application using interface builder 171
10.4.1 use the interface builder 174
10.4.2 docker 175
10.4.3 database 176
10.4.4 viewer pane and Selector toolbar 177
10.4.5 create view 177
10.4.6 socket 179
10.4.7 connection action and object 180
10.4.8 implementation file 181
10.5 conclusion 182
10.6 exercise 182
Chapter 2 Data Storage 11th
11.1 storage considerations 183
11.2 preferences 183
11.2.1 write operations of preference 184
11.2.2 preference 185
11.3 database 185
11.4 store information in the database 185
11.5 start using core data 186
11.6 model 188
11.6.1 controlled object context 194
11.6.2 setting page 194
11.7 Conclusion 199
11.8 exercise 200
Chapter 4 agreement and delegation 12th
12.1 + inheritance 201
12.2 understanding protocol 202
12.3 understanding delegation 203
12.4 next step 204
12.5 conclusion 205
Chapter 2 memory, address, and pointer 13th
13.1 understand memory 206
13.1.1 bit, byte, and base 207
13.1.2 convert to binary 207 in decimal format
13.1.3 use the hexadecimal notation 208
13.2 understand the basics of memory address 210
13.3 memory allocation 213
13.4 unallocate memory 215
13.5 use arc to manage memory 217 in objective-C
13.6 objective-C memory management without arc 219
13.6.1 use retention/release Model 220
13.6.2 handling implicit retention messages and automatic release 221
13.6.3 send dealloc message 222
13.7 if a problem occurs 223
13.8 arc considerations 224
13.9 conclusion 224
13.10 exercise 225
Chapter 2 xcode debugger 14th
14.1 prepare for debugging 226
14.1.1 set breakpoint 227
14.1.2 use the breakpoint navigator 228
14.1.3 debugging basics 230
14.1.4 use the debugger control 231
14.1.5 use the single-step control 232
14.1.6 view thread window and call stack 233
14.1.7 variable debugging 234
14.2 Process Code errors and warnings 235
14.3 conclusion 239
Source of this book: China Interactive publishing network