Objectivec recommends objective-C development sample code

Source: Internet
Author: User
Tags string to number

It took me one afternoon to finish reading "objective-C development sample code Daquan". This book is suitable for programmers with or without any foundation, from shortest to deep, this article describes the solutions to common problems in MAC and iOS development. For more information, see the five stages of the delefors model. This book is suitable for beginners and can be used to find solutions to some problems, it is not appropriate to have a foundation.
There are eleven chapters in this book. One to three chapters explain how to create a program, add files, strings, arrays, and other basic issues. four to ten chapters explain memory management and multithreading, core data and other issues. Chapter 11 explains how to use objective-C on the Windows platform. The whole book provides solutions based on the problems. Some paragraphs are repetitive because they are problem-oriented, the content will not be further expanded.
In general, the content is too extensive and suitable for beginners. People with certain foundations can find answers through Google.

The directory is still very detailed.

 

Chapter 1 Application Development 1
1.1 create a terminal application 1
1.2 output to Console 3
1.3 create a new custom Class 5
1.4 write attribute accessors 7
1.5 Use @ synthesize to write attributes
Accessors 10
1.6 Add Class Method 12 to the custom class
1.7 add to custom class
Instance method 14
1.8 use category to extend the class 15
1.9 create a window-based
Mac application 17
1.10 Add a user control to a Mac application 20
1.11 create a window-based
Mac application 23
1.12 create an iOS app from xcode 25
1.13 use the target-apply the action to IOS
Add User Control 29
1.14 Add a delegate to the iOS app
User Control 33
Chapter 3 Use strings and numbers 37
2.1 create a String object 37
2.2 read files from Mac
String 39
2.3 read files from IOS
String 41
2.4 write the string
File 43
2.5 write the string
File 45
2.6 comparison string 48
2.7 manipulate string 50
2.8 search string 53
2.9 localized string 54
2.10 convert digits to string 56
2.11 convert string to number 58
2.12 format number 59
Chapter 61 use object set 61
3.1 create an array 62
3.2 reference objects in the array 63
3.3 obtain the number of elements in the array 65
3.4 traverse array 66
3.5 sorting array 68
3.6 query an array 72
3.7 manipulate array content 75
3.8 Save the array to the file system 78
3.9 read array 80 from the file system
3.10 create a dictionary 81
3.11 reference objects in the array 83
3.12 get the number of elements in the dictionary 84
3.13 traverse dictionary 85
3.14 manipulate dictionary content 87
3.15 Save the dictionary to the file system 89
3.16 read the dictionary from the file system 90
3.17 create a set 92
3.18 get the number of elements in the Set 93
3.19 comparison set 94
3.20 traverse a set 96
3.21 manipulate set content 97
Chapter 4 File System 4th
4.1 reference and use File Manager 101
4.2 obtain
Reference 103
4.3 obtain
Reference 105
4.4 get file attributes 107
4.5 obtain files and subdirectories in the directory
List 109
4.6 manage directory 111
4.7 File Management 114
4.8 View File status 117
4.9 modifying file attributes 119
4.10 use nsfilemanager
Delegate 121
4.11 use nsdata to process data 127
4.12 Use nscache to cache content 131
Chapter 4 date, time, and timer 5th
5.1 create a date object that represents today 137
5.2 create with component
Custom date 138
5.3 compare two dates 140
5.4 convert string to date 143
5.5 format the date to display 144
5.6 addition and subtraction date 146
5.7 use timer scheduling and repeat
Execute task 147
Chapter 2 asynchronous processing 6th
6.1 Process in New thread 151
6.2 between the main thread and the background thread
Communication 156
6.3 use nslock to lock the thread 163
6.4 Use @ synchronized
Lock thread 167
6.5 Use Grand Central Dispatch (GCD)
Asynchronous processing 171
6.6 use sequential queue 177 in GCD
6.7 use nsoperationqueue
Asynchronous processing 182
Chapter 4 Use Web Services 7th
7.1 download file 187
7.2 use web services through XML 189
7.3 use Web Service 195 through JSON
7.4 use Web Service 198 Asynchronously
Chapter 4 Memory Management 8th
8.1 understand memory management 201
8.2 create an application that does not use arc 203
8.3 use reference count to manage memory 205
8.4 add memory management for custom classes 207
8.5 use autorelease message 210
8.6 enable garbage collection for Mac applications 215
Chapter 4 object graph 9th
9.1 create an object image 218
9.2 use key-value encoding 229
9.3 use the Key Path 236 in the object graph
9.4 Key Path aggregation information 241
9.5 implement observer mode 247
9.6 exploration class and object 252
9.7 archive object diagram 257
Chapter 2 core data267
10.1 add core data to the application
267
10.2 add Object Description 274
10.3 Add a hosted object to the application 276
10.4 add to core data
Managed object 280
10.5 retrieving objects from data storage 285
10.6 send the change back to data storage 290
10.7 use core data to manage a pair
1 correlation 296
10.8 use core data to manage a pair
Multi-join relationship 304
10.9 Data Storage Management Version 315
Chapter 2 objective-C: surpassing Mac and
Ios325
11.1 install on Windows
Gnustep325
11.2 objective-C on Windows
Program Hello world327
11.3 download objective-J
Web app development 330
11.4 compile an objective-J Application
Hello world331
11.5 add to objective-J Application
Button 336

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.