不用arc的话strong weak 相当于:strong 用来修饰强引用的属性;@property (strong) SomeClass * aObject;对应原来的@property (retain) SomeClass * aObject; 和 @property (copy) SomeCl...
分类:
移动开发 时间:
2014-09-24 04:36:45
阅读次数:
229
实现这个动画效果用到了interpolator属性,这样就能让一些控件产生自定义的抖动效果这是用作interpolator的文件,用来做动画循环cycle.xmlx轴抖动:y轴抖动:有角度的抖动:
分类:
其他好文 时间:
2014-09-23 15:31:44
阅读次数:
154
使用全局内存来存储球面对象,项目打包下载 1 /* 2 * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. 3 * 4 * NVIDIA Corporation and its licensors retain al...
分类:
其他好文 时间:
2014-09-23 12:26:44
阅读次数:
236
项目打包下载 1 /* 2 * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. 3 * 4 * NVIDIA Corporation and its licensors retain all intellectual...
分类:
其他好文 时间:
2014-09-23 11:56:14
阅读次数:
214
题目:
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
这是一道关于链表比较简单的题,很顺利就解决了,不多说啦,上代码啦
# Definition for singly-linked list.
# ...
分类:
其他好文 时间:
2014-09-22 22:07:03
阅读次数:
233
项目打包下载 1 /* 2 * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. 3 * 4 * NVIDIA Corporation and its licensors retain all intellectual...
分类:
其他好文 时间:
2014-09-22 17:01:32
阅读次数:
304
从Ray Wenderlich的教程中截取了一小段作为对objective c中ARC的介绍,讲得比较清晰,原文有丰富的例子,见此它是怎么工作的你大概已经熟悉如何手工管理内存了, 就像这样:如果你想保持一个对象可用,除非它已经被 retain 了,否则你就需要 retain 它。如果你不再需要一个对...
分类:
其他好文 时间:
2014-09-22 13:59:52
阅读次数:
251
一.OC的内存管理的过程OC为每个对象提供一个内部计数器,这个计数器跟踪对象的引用计数,当对象被创建或拷贝时,引用计数为1,每次保持对象时,调用retain接口,引用计数加1,如果不需要这个对象时调用release,引用计数减1,当对像的引用计数为0时,系统就会释放掉这块内存,释..
分类:
其他好文 时间:
2014-09-22 12:43:22
阅读次数:
173
一.OC的内存管理的过程OC为每个对象提供一个内部计数器,这个计数器跟踪对象的引用计数,当对象被创建或拷贝时,引用计数为1,每次保持对象时,调用retain接口,引用计数加1,如果不需要这个对象时调用release,引用计数减1,当对像的引用计数为0时,系统就会释放掉这块内存,释..
分类:
其他好文 时间:
2014-09-22 11:54:02
阅读次数:
225
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
/**
* Definition for singly-linked list.
...
分类:
其他好文 时间:
2014-09-21 18:31:21
阅读次数:
233