Updated for Xcode 8, Swift 3, and iOS 10, iOS Programming: The Big Nerd Ranch Guide leads you through the essential concepts, tools, and techniques for developing iOS applications. After completing this book, you will have the know-how and the confidence you need to tackle iOS projects of your own. Based on Big Nerd Ranch's popular iOS training and its well-tested materials and...
Updated for Xcode 8, Swift 3, and iOS 10, iOS Programming: The Big Nerd Ranch Guide leads you through the essential concepts, tools, and techniques for developing iOS applications. After completing this book, you will have the know-how and the confidence you need to tackle iOS projects of your own. Based on Big Nerd Ranch's popular iOS training and its well-tested materials and methodology, this bestselling guide teaches iOS concepts and coding in tandem. The result is instruction that is relevant and useful.
Throughout the book, the authors explain what's important and share their insights into the larger context of the iOS platform. You get a real understanding of how iOS development works, the many features that are available, and when and where to apply what you've learned.
All Objective-C objects are stored in a part of memory called the heap. When we send an alloc message to a class, a chunk of memory is allocated from the heap.
This chunk includes space for the object’s instance variables.
Pointer variables convery ownership of the objects that they point to.
1. When a method (or function) has a local variable that points to an object, that method is said to own the object being pointed to.
2. When an object has an instance variable that points to another object, the object with the pointer is said to own the object being pointed to.
The idea of object ownership helps us determine whether an object should be destroyed.
1. An object with no owners should be destroyed. An ownerless object cannot be sent messages and is isolated and useless to the application... (查看原文)
1 有用 greatabel 2017-08-15 14:41:15
https://github.com/greatabel/SwiftRepository/tree/master/07Big%20Nerd%20Ranch
1 有用 TracyLiu 2017-06-19 13:09:59
这个每次读都有收获啊
0 有用 dhcn 2017-06-02 16:42:29
一样的简洁,内容范围有了较大变化。
2 有用 braveheart 2017-01-18 12:58:36
iOS 开发必备!很经典,值得仔细阅读!