在JDK1.2之后,Java对引用的概念进行了扩充,将引用分为强引用(Strong Reference)、软引用(Soft Reference)、弱引用(Weak Reference)、虚引用(Phantom Reference)四种,这四种引用强度一次逐渐减弱。1、强引用就是指在程序代码之中普.....
分类:
编程语言 时间:
2014-09-25 12:34:08
阅读次数:
202
实现图片浏览器功能效果:此教程涉及到较多的category的使用,注意.思路:1. 获取一个view在UIWindow中的frame值2. 获取这个view的快照3. 对这个快照进行动画全屏4. 全屏消失后移除掉这个快照源码:NSObject+WeakRelated.h 与NSObject+Weak...
分类:
其他好文 时间:
2014-09-25 01:15:17
阅读次数:
335
OS5.0以后就开始可以使用ARC( Automatic Reference Counting:自动引用计数 )来代替之前的MRC(Manual Reference Counting:人工引用计数)。使用ARC会减少很多代码和忘了释放对象的苦恼。但是事情都有两面性。使用了ARC之后如果你想复用以前写过的使用MRC的类, 就会出报错。这时候怎么办?方法比较简单, 只需要做下面的一个步骤就可以解决:
...
分类:
移动开发 时间:
2014-09-24 19:41:27
阅读次数:
236
不用arc的话strong weak 相当于:strong 用来修饰强引用的属性;@property (strong) SomeClass * aObject;对应原来的@property (retain) SomeClass * aObject; 和 @property (copy) SomeCl...
分类:
移动开发 时间:
2014-09-24 04:36:45
阅读次数:
229
Problem:There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "You...
分类:
其他好文 时间:
2014-09-23 12:32:24
阅读次数:
708
IntroductionEven Chris created his article ofUseful Reference Booksages ago I just bumped into it, and after adding my bit I thought to do something s...
分类:
其他好文 时间:
2014-09-22 23:30:33
阅读次数:
346
AccordionContainer实现的效果是在同一块区域切换几个不同的TAB,比TabContainer多了一些滑动效果。 参考: http://dojotoolkit.org/reference-guide/1.10/dijit/layout/AccordionContainer.html...
分类:
其他好文 时间:
2014-09-22 20:34:03
阅读次数:
194
Source Reference: wix help document --WiX Toolset LicenseUsing Patch Creation PropertiesA patch contains the differences between one or more pairs of ...
分类:
其他好文 时间:
2014-09-22 16:38:12
阅读次数:
271
参考:AndroidSDK/docs/reference/android/content/Intent看到相关代码,对这两个参数的区别有点搞不清。现在知道的是new Intent(Intent.ACTION_GET_CONTENT, null)必须要setType("type/后缀"),否则会会弹出...
分类:
其他好文 时间:
2014-09-22 12:28:02
阅读次数:
283