码迷,mamicode.com
首页 >  
搜索关键字:weak reference    ( 6649个结果)
两种视频播放形式和 视频截图
#import "ViewController.h" #import #import @interface ViewController () @property(nonatomic,weak)UIImageView *image; @property(nonatomic,strong)MPM...
分类:其他好文   时间:2015-07-21 20:25:26    阅读次数:98
相机调用
//原理:调用 #import "ViewController.h" @interface ViewController () @property(nonatomic,weak)UIImageView *photoImage; @end @implementation ViewControl...
分类:其他好文   时间:2015-07-21 20:12:49    阅读次数:102
50 Excel VBA Oral Interview Questions
Ques 01. What is the difference between ByVal and ByRef and which is default ?Solution: ByRef: If you pass an argument by reference when calling a pro...
分类:编程语言   时间:2015-07-21 16:53:42    阅读次数:241
Windows System Account、Linux System Account SSH Weak Password Detection Automatic By System API
Windows System Account、Linux System Account SSH Weak Password Detection Automatic By System API
分类:Windows程序   时间:2015-07-21 12:18:13    阅读次数:473
对于atomic nonatomic assign retain copy strong weak的简单理解
atomic和nonatomic用来决定编译器生成的getter和setter是否为原子操作1)atomic 设置成员变量的@property属性时,atomic是默认值,提供多线程安全 在多线程环境下,原子操作是必要的,否则有可能引起错误的结果。加了atomic后setter函数会变成下...
分类:其他好文   时间:2015-07-21 01:07:09    阅读次数:214
Android开发之ListView中BaseAdapter的使用
BaseAdapter,官网链接--http://developer.android.com/intl/zh-cn/reference/android/widget/BaseAdapter.html继承:Object接口:ListAdapter SpinnerAdapter已知直接子类:ArrayA...
分类:移动开发   时间:2015-07-20 19:16:10    阅读次数:182
iOS 代理传值
1、.h文件中声明代理 @protocol ExchangePointArrayDelegate -(void)exchangePointsIn:(NSArray *)pointarray; //用来传递exchangePoints这个数组的代理方法 @end @property (weak , nonatomic) id delegate; 声明这个delegate必须使用weak...
分类:移动开发   时间:2015-07-20 16:35:00    阅读次数:127
ARC下需要注意的内存管理
在2011年的WWDC中,苹果提到90%的crash是由于内存管理引起的,ARC(Automatic Reference Counting)就是苹果给出的解决方案。启用ARC后,开发者不需要担心内存管理,编译器会为你处理这一切(注意ARC是编译器特性,而不是iOS运行时特性,更不是其他语言中的垃圾收...
分类:其他好文   时间:2015-07-20 16:05:22    阅读次数:173
boost库的使用
我的经验:在强调运行效率的场合:shared_ptr/weak_ptr很好用,尤其是weak_ptr这个能够判断一个对象的生命周期的玩意,可以简化和扩展很多设计。unordered系列的容器也很不错。thread+function+bind是异步编程的利器。signal:这个因为个人比较喜事件驱动这...
分类:其他好文   时间:2015-07-20 09:10:22    阅读次数:123
algorithm之排序算法--待解决
简述:排序算法,参见http://www.cplusplus.com/reference/algorithm/?kw=algorithm待解决问题:各种排序算法的实现/*template void sort (RandomAccessIterator first, RandomAccessItera...
分类:编程语言   时间:2015-07-20 01:08:14    阅读次数:200
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!