@property(nonatomic, readonly, retain) UILabel *titleLabelDescription - 描述A view that displays the value of the currentTitle property for a button. (r...
分类:
其他好文 时间:
2014-06-28 21:42:04
阅读次数:
277
nonatomic:非原子性访问,不加同步,多线程并发访问会提高性能。如果不加此属性,则默认是两个访问方法都为原子型事务访问。 (atomic是Objc使用的一种线程保护技术,基本上来讲,是防止在写未完成的时候被另外一个线程读取,造成数据错误。而这种机制是耗费系统资源的,所 以在iPhone这种小型...
分类:
编程语言 时间:
2014-06-28 20:17:39
阅读次数:
276
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Analysis: typical Runner Technique. 一次过 1 ...
分类:
其他好文 时间:
2014-06-28 13:44:51
阅读次数:
164
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?一次...
分类:
其他好文 时间:
2014-06-28 13:38:14
阅读次数:
171
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *...
分类:
其他好文 时间:
2014-06-22 23:59:58
阅读次数:
244
Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Linked List Cycle IIGiven...
分类:
其他好文 时间:
2014-06-20 20:46:58
阅读次数:
245
非gc的对象,所以默认的assign修饰符是不行的。那么什么时候用assign、什么时候用retain和copy呢?推荐做法是NSString用copy,delegate用assign(且一定要用assign,不要问为什么,只管去用就是了,以后会明白的),非objc数据类型,比如int,float等...
分类:
其他好文 时间:
2014-06-18 15:43:31
阅读次数:
286
UIButton的titleLabel@property(nonatomic, readonly, retain) UILabel *titleLabelDescription - 描述A view that displays the value of the currentTitle proper...
分类:
其他好文 时间:
2014-06-18 09:08:25
阅读次数:
160
首先来分析一下HTTP模块是如何介入Nginx的。
当master进程fork出若干个workr子进程后,每个worker子进程都会在自己的for死循环中不断调用事件模块:
for ( ;; ) {
....
ngx_process_events_and_timers(cycle); /* 调用事件模块 */
....
}...
分类:
其他好文 时间:
2014-06-18 08:03:22
阅读次数:
246
Cycle是一个很棒的jQuery图片切换插件,提供了非常好的功能来帮助大家更简单的使用插件的幻灯功能
Cycle插件可以作用于页面中的任何一组同辈元素。为展示这一点,我们需要一个简单的
HTML文档,文档中是一个包含商品封面和相关信息的列表,可以添加到HTML文档的主体中:...
分类:
Web程序 时间:
2014-06-16 21:29:56
阅读次数:
249