×
思维导图备注
Objective-C Programming_ The Bi - Aaron Hillegass; Mark Fenoglio
首页
收藏书籍
阅读记录
书签管理
我的书签
添加书签
移除书签
2. Your First Program
浏览
4
扫码
小字体
中字体
大字体
2022-02-24 01:45:49
请
登录
再阅读
上一篇:
下一篇:
I. Getting Started
1. You and This Book
C and Objective-C
How this book works
How the life of a programmer works
2. Your First Program
Installing Apple’s developer tools
Getting started with Xcode
Where do I start writing code?
How do I run my program?
So what is a program?
Don’t stop
II. How Programming Works
3. Variables and Types
Types
A program with variables
Challenge
4. if/else
Boolean variables
else if
For the More Curious: Conditional (ternary) operator
Challenge
5. Functions
When should I use a function?
How do I write and use a function?
How functions work together
Local variables, frames, and the stack
Recursion
Looking at the frames in the debugger
return
Global and static variables
Challenge
6. Numbers
printf()
Integers
Floating-point numbers
Challenge
7. Loops
The while loop
The for loop
break
continue
The do-while loop
Challenge
8. Addresses and Pointers
Getting addresses
Storing addresses in pointers
Getting the data at an address
How many bytes?
NULL
Stylish pointer declarations
Challenges
9. Pass By Reference
Writing pass-by-reference functions
Avoid dereferencing NULL
10. Structs
Challenge
11. The Heap
III. Objective-C and Foundation
12. Objects
Creating and using your first object
Message anatomy
Objects in memory
id
Challenge
13. More Messages
Nesting message sends
Multiple arguments
Sending messages to nil
Challenge
14. NSString
Challenge
15. NSArray
NSMutableArray
Challenges
16. Developer Documentation
Reference pages
Quick Help
Other options and resources
17. Your First Class
Accessor methods
Dot notation
Properties
self
Multiple files
Challenge
18. Inheritance
Overriding methods
super
Challenge
19. Object Instance Variables
Object ownership and ARC
Challenge
20. Preventing Memory Leaks
Retain cycles
Weak references
Zeroing of weak references
For the More Curious: Manual reference counting and ARC History
21. Collection Classes
NSArray/NSMutableArray
NSSet/NSMutableSet
NSDictionary/NSMutableDictionary
C primitive types
Collections and nil
Challenge
22. Constants
Preprocessor directives
#include and #import
#define
Global variables
#define vs global variables
23. Writing Files with NSString and NSData
Writing an NSString to a file
NSError
Reading files with NSString
Writing an NSData object to a file
Reading an NSData from a file
24. Callbacks
Target-action
Helper objects
Notifications
Which to use?
Callbacks and object ownership
25. Protocols
26. Property Lists
Challenge
IV. Event-Driven Applications
27. Your First iOS Application
Getting started with iTahDoodle
BNRAppDelegate
Adding a C helper function
Objects in iTahDoodle
Model-View-Controller
The application delegate
Setting up views
Wiring up the table view
Adding new tasks
For the More Curious: What about main()?
28. Your First Cocoa Application
Edit BNRDocument.h
A look at Interface Builder
Edit BNRDocument.xib
Making connections
Revisiting MVC
Edit BNRDocument.m
Challenges
V. Advanced Objective-C
29. init
Writing init methods
A basic init method
Using accessors
init methods that take arguments
Deadly init methods
30. Properties
Property attributes
Key-value coding
31. Categories
32. Blocks
Defining blocks
Using blocks
typedef
Return values
Memory management
The block-based future
Challenges
VI. Advanced C
33. Bitwise Operations
Bitwise-OR
Bitwise-AND
Other bitwise operators
Using enum to define bit masks
More bytes
Challenge
34. C Strings
char
char *
String literals
Converting to and from NSString
Challenge
35. C Arrays
36. Command-Line Arguments
37. Switch Statements
Next Steps
Index
More From Big Nerd Ranch...
暂无相关搜索结果!
×
二维码
手机扫一扫,轻松掌上学
×
《Objective-C Programming_ The Bi - Aaron Hillegass; Mark Fenoglio》电子书下载
请下载您需要的格式的电子书,随时随地,享受学习的乐趣!
EPUB 电子书
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度