#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@property (nonatomic,strong) NSOpera...
分类:
编程语言 时间:
2015-09-05 06:32:59
阅读次数:
231
1 #import "ViewController.h" 2 3 @interface ViewController () 4 5 @property (weak, nonatomic) IBOutlet UIScrollView *scrollView; 6 @property...
分类:
移动开发 时间:
2015-09-03 23:08:40
阅读次数:
205
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;// 定义字典读取plist文件@property (nonatomic...
分类:
移动开发 时间:
2015-09-03 21:40:43
阅读次数:
209
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@property (weak, nonatomic) IBOutlet...
分类:
其他好文 时间:
2015-09-03 19:05:08
阅读次数:
205
//异步函数+全局并发队列 嵌套 异步函数+主队列#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIButton *button;@end@implementati...
分类:
编程语言 时间:
2015-09-02 23:22:58
阅读次数:
346
#import "ViewController.h"@interface ViewController ()//图片框 UIImageView@property (weak, nonatomic) IBOutlet UIImageView *imageView;@end@implementation...
分类:
编程语言 时间:
2015-09-02 01:53:01
阅读次数:
158
Find the number Weak Connected Component in the directed graph. Each node in the graph contains a label and a list of its neighbors. (a connected set ...
分类:
其他好文 时间:
2015-09-01 21:12:12
阅读次数:
344
在objective-c的ARC模式中,请看以下代码id objc =[[NSObject alloc]init];这里id默认为强引用在强引用中,有时会出现循环引用的情况,这时就需要weak来帮忙啦int main(int argc, const char * argv[]) { id __we....
分类:
移动开发 时间:
2015-09-01 16:42:49
阅读次数:
183
__weak typeof(self) weakSelf = self的应用意思是声明了一个self类型的weakSelf,加上__weak表示它是弱引用的。整行代码就是给self定义了一个弱引用性质的替身。一般用在block上,因为block会copy它内部的变量,可能会造成循环引用,使用__we...
分类:
其他好文 时间:
2015-09-01 16:33:25
阅读次数:
209
参考文献:iOS ARC 完全指南提示:本文中所说的"实例变量"即是"成员变量","局部变量"即是"本地变量"一、简介ARC是自iOS 5之后增加的新特性,完全消除了手动管理内存的烦琐,编译器会自动在适当的地方插入适当的retain、release、autorelease语句。你不再需要担心内存管理...
分类:
其他好文 时间:
2015-09-01 12:33:56
阅读次数:
208