码迷,mamicode.com
首页 >  
搜索关键字:weak reference    ( 6649个结果)
iOS开发 - UICollectionViewLayout 自定义布局
Model cell#import @interface ImageCell : UICollectionViewCell @property (nonatomic, copy) NSString *image; @end #import "ImageCell.h"@interface ImageCell() @property (weak, nonatomic) I...
分类:移动开发   时间:2015-08-30 10:00:18    阅读次数:441
20150827 课后训练作业
一、作业(练习)内容:1、总结本此课程中所涉及命令的使用方法及相关示例展示;chmod1.命令解释:改变文件权限语法结构:chmod[OPTION]...MODE[,MODE]...FILE...chmod[OPTION]...OCTAL-MODEFILE...chmod[OPTION]...--reference=RFILEFILE...命令选项:-R:对目前目录下的所有档..
分类:其他好文   时间:2015-08-30 01:16:20    阅读次数:310
Effective C++——条款10条,条款11和条款12(第2章)
条款10:    令operator=返回一个reference to *this Have assignment operators return a reference to *this       关于赋值,可以把它们写成连锁形式: int x, y, z; x = y = z = 15; // 赋值连锁形式     赋值采用右结合律,所以上述连锁赋值被解析为: ...
分类:编程语言   时间:2015-08-30 01:06:20    阅读次数:186
NSString类方法同步请求、使用NSData方法同步请求 下载图片、数据
#import "ViewController.h" @interface ViewController () @property(nonatomic,weak)IBOutlet UIButton *button; @property(nonatomic,weak)IBOutlet UIImageView *imageView; @end @implementation ViewCo...
分类:其他好文   时间:2015-08-30 01:01:23    阅读次数:164
Quartz 线程处理
官网http://www.quartz-scheduler.net/相关的 Log 说明http://netcommon.sourceforge.net/docs/2.1.0/reference/html/index.html博客园友>> 懒惰的肥兔 (他写不少相关的文章,值得一读)http://w...
分类:编程语言   时间:2015-08-30 00:40:58    阅读次数:156
strong和weak
在iOS开发的过程中,我们一般不用retain,和assign,而是用strong和weak,这时候,我们可以把strong理解为retain,而weak理解为assign,比较容易理解。 在ARC情况下: Strong 和weak: 如果一个对象同时被两个指针所引用,例如: Object *b1 = [[Object alloc]initAge:23]; O...
分类:其他好文   时间:2015-08-29 18:53:14    阅读次数:278
AsyncTask 源码阅读
1.参考资料 1. http://developer.android.com/reference/android/os/AsyncTask.html 2. http://blog.csdn.net/pi9nc/article/details/12622797 3. http://www.tuicool.com/articles/VnMf2i3 下面详细解析Asynctask的源码流...
分类:其他好文   时间:2015-08-29 15:32:44    阅读次数:161
网络数据同步请求加载
#import "ViewController.h"@interface ViewController ()@property(nonatomic,weak)IBOutlet UIButton *button;@property(nonatomic,weak)IBOutlet UIImageView...
分类:其他好文   时间:2015-08-29 15:16:04    阅读次数:157
同步下载数据,jeson 解析
#import "ViewController.h" @interface ViewController () @property(nonatomic,weak)IBOutlet UIButton *button; @property(nonatomic,weak)IBOutlet UIImageView *imageView; @end @implementation ViewCo...
分类:其他好文   时间:2015-08-29 14:03:17    阅读次数:121
2、iOS 开发之字典转模型和 xib
一、字典转模型(plist文件)模型的封装方法:(放到代码仓库中)1.在.h文件中添加与plist文件key值对应的属性名Array --- > NSArray Dictionary --- > NSDictionary string ---> NSString number ---> NSNumber注意:属性名和plist中key值一定要一致2..h文件文件中属性的strong weak cop...
分类:移动开发   时间:2015-08-29 06:21:31    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!