https://github.com/Androooid/treasure/blob/master/source/lightsky/posts/mat_usage.md 1.1 GC Root JAVA虚拟机通过可达性(Reachability)来判断对象是否存活,基本思想:以"GC Roots"的 ...
分类:
其他好文 时间:
2016-06-21 22:12:19
阅读次数:
628
? iM: has identity and cannot be moved from ? im: has identity and can be moved from (e.g. the result of casting an lvalue to a rvalue reference) ? Im ...
分类:
其他好文 时间:
2016-06-21 20:35:25
阅读次数:
170
一、OSI七层协议体系结构域TCP/IP四层体系结构对比 ISO/OSI模型,即开放式通信系统互联参考模型(Open System Interconnection Reference Model),是国际标准化组织(ISO)提出的一个试图使各种计算机在世界范围内互连为网络的标准框架,简称OSI。 T ...
分类:
其他好文 时间:
2016-06-21 17:19:16
阅读次数:
184
[reference]http://www.jianshu.com/p/b10680a32d3 1、 确认下证书是不是开发证书,如果是发布证书就会出现这样的提示。 2、 证书失效了,去开发者中心重新生成一个。 3、 包标识符不与描述文件包含的包标识符不一致,按照它的提示换一下就好了,最好不要点 Fi ...
分类:
其他好文 时间:
2016-06-21 15:26:41
阅读次数:
114
我自己的随笔,记录我编码的点滴。 <!DOCTYPE HTML><html><head> <meta charset="utf-8"/> <link rel="stylesheet" type="text/css" href="reference/bootstrap.css"/> <script t ...
分类:
Web程序 时间:
2016-06-21 12:35:53
阅读次数:
250
有使用JSonKit的朋友,如果遇到“JSonKit does not support Objective-C Automatic Reference Counting(ARC)”这种情况,可参照如下方法: 点击项目根目录->targets->Build Phases->JSONKit.m->添加“ ...
分类:
移动开发 时间:
2016-06-21 12:35:04
阅读次数:
221
1.0 Basic Operationssrand((unsigned)time(0)); //种种子
int index = arc4random() % poker.allCads.count;//不需要种子取随机数
[p retain]; //查看引用计数值
__weak => [p release]; p = nil; //不能分配空间,马上释放1.1 CopyWithZone- (id)c...
分类:
其他好文 时间:
2016-06-21 07:24:58
阅读次数:
189
原帖地址 http://stackoverflow.com/questions/36147625/xcode-7-3-cannot-create-weak-reference-in-file-using-manual-reference-counting activeoldestvotes up v ...
分类:
其他好文 时间:
2016-06-20 20:45:50
阅读次数:
393
- (void)addObserver:(__weak NSObject *)observer forContext:(void *)context { NSValue *valueContext = [NSValue valueWithPointer:context]; dispatch_sync ...
分类:
其他好文 时间:
2016-06-20 18:25:46
阅读次数:
141
__weak是为了解决block的循环引用问题.例如:TRBlockObject*blockObj=[TRBlockObjectnew];
blockObj.block=^void(void){
NSLog(@"blockObj%@“,blockObj);
};例中,block属性是blockObj对象的;而在block体中,block又引用了blockObj对象,造成了循环引用。解决的办法是加__wea..
分类:
其他好文 时间:
2016-06-20 16:04:10
阅读次数:
329