
ARC
文章平均质量分 77
chuanyituoku
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Ownership qualifiers of Objective-C: In Details
详细介绍Objective-C的Ownership Qualifier,帮助更好理解ARC是怎么回事,实现细节;绝对算是专业级的讲解,找工作前理清思路、提高自信的必需品。 With ARC, ‘id’ and object type variables must have one of the following four ownership qualifiers: __strong __weak __unsafe_unretained __autoreleasing原创 2013-12-17 10:44:30 · 2014 阅读 · 0 评论 -
ARC Rules
ARC Rules To write and compile source code for ARC, you have to take care of a few things. Just by following the rules in the list below, you can write source code for an ARC-enabled environment wi原创 2013-12-17 20:07:42 · 1233 阅读 · 0 评论 -
Implementing __strong ownership qualifier
__strong ownership qualifier Let’s see how the variables that are qualified with __strong work, using NSMutableArray class method “array” as an example. We see under the hood of calling the method原创 2013-12-17 22:24:33 · 635 阅读 · 0 评论 -
Implementing __autoreleasing ownership qualifier
__autoreleasing ownership qualifier Assigning an object to any variables qualified with __autoreleasing is equivalent to calling the autorelease method in a non-ARC environment. Let’s see how it原创 2013-12-17 22:32:34 · 802 阅读 · 0 评论 -
Implementing __weak ownership qualifier
__weak ownership qualifier Next, we learn about the __weak ownership qualifier. We show what happens when an object is disposed of or when a newly created object is assigned and how an object is ad原创 2013-12-17 22:25:57 · 1054 阅读 · 0 评论 -
Array under ARC
Array I explained the ownership specifiers with ‘id’ or object type variables. In this section, I explain how we can use the specifiers with arrays. The following source code shows how to use a原创 2013-12-17 21:03:53 · 637 阅读 · 0 评论 -
Passing address of non-local object to __autoreleasing parameter for write-back
Returning a Result as the Argument 在希望通过函数的参数返回Objective-C 对象原创 2014-07-28 11:46:11 · 2796 阅读 · 0 评论