弱引用实在是太弱了,连通过该引用来申请空间都无法保持联系。举个例子@interface classA:NSObject@porperty (nonatomic,weak) classA * tempClass1;@property (nonatomic,strong) classA * tempCl...
分类:
其他好文 时间:
2015-12-21 14:02:40
阅读次数:
177
循环引用的简单理解:A引用B,B又引用A,双方都同时保持对方的一个引用,导致任何时候引用计数都不为0,始终无法释放。一:Block1.ARC环境下: 使用__weak声明一个代替self的新变量代替原先的self;2.MRC环境下:使用__block .二:代理ARC环境下:声明代理时使用弱引用we...
分类:
移动开发 时间:
2015-12-21 10:48:05
阅读次数:
134
In myprevious postwe looked at different categories of ClassLoader leaks, and looked at a particular example of a reference from outside the web appli...
分类:
编程语言 时间:
2015-12-21 00:10:17
阅读次数:
393
1 #import "MJViewController.h" 2 3 @interface MJViewController () 4 5 @property (weak, nonatomic) IBOutlet UIWebView *webView; 6 @property (weak, ...
分类:
Web程序 时间:
2015-12-20 01:49:38
阅读次数:
210
1 #import "MJViewController.h" 2 3 @interface MJViewController () 4 @property (weak, nonatomic) IBOutlet UITextField *userName; 5 @property (we...
分类:
其他好文 时间:
2015-12-19 23:09:38
阅读次数:
239
转自http://lizhuang.iteye.com/blog/1989337对Objective-C的对象变量属性不是很了解,就去找了一下这方面的文章,觉得这篇文章不错就转载了。strong与weak是由ARC新引入的对象变量属性xcode 4.2(ios sdk4.3和以下版本)和之前的版.....
分类:
其他好文 时间:
2015-12-18 18:29:46
阅读次数:
209
16.0 SP04 > Reference: Statements and Options > SQL StatementsDefines an event and its associated handler for automating predefined actions. Also defi...
分类:
数据库 时间:
2015-12-18 06:34:28
阅读次数:
301
#import "ViewController.h"#import #import @interface ViewController ()@property(nonatomic,strong) CLLocationManager *locMgr;@property (weak, nonatomic...
分类:
移动开发 时间:
2015-12-17 12:14:15
阅读次数:
2431
reference to : http://www.cnblogs.com/hanyonglu/p/4244035.html#undefined 2015年伊始,Google发布了关于Android性能优化典范的专题,一共16个短视频,每个3-5分钟,帮助开发者创建更快更优秀的Android Ap....
分类:
移动开发 时间:
2015-12-17 00:26:20
阅读次数:
315
公有成员函数std::list::removevoid remove(const value_type& val); 删除与给定值相等的元素 从容器中删除所有与 val 值相等的元素。list::remove 函数删除给定元素时,会调用被删除对象的析构函数,并且缩小相应大小的容器 size 。 .....
分类:
编程语言 时间:
2015-12-16 23:05:53
阅读次数:
276