memory allocation : object 创造时memory free : 当没有 reference 指向该object 时当浏览器执行时,需要维护来自DOM的大量对象,IE使用自己的垃圾回收机制,而这个机制和javascript不同,这就导致内存泄漏的发生。内存泄漏Amem...
分类:
其他好文 时间:
2016-01-26 12:23:59
阅读次数:
118
生成二维码前提:需要导入以下代码1.在ViewController的.m文件中定义一个UIImageView属性, 存放二维码@property (weak, nonatomic) IBOutlet UIImageView *imageView;2.在viewDidLoad方法中写以下代码即可sel...
分类:
其他好文 时间:
2016-01-25 22:59:48
阅读次数:
328
1 #import "HMViewController.h" 2 3 @interface HMViewController () 4 @property (weak, nonatomic) IBOutlet UIProgressView *progressView; 5 /** 6...
分类:
移动开发 时间:
2016-01-25 21:06:50
阅读次数:
225
1 #import "HMViewController.h" 2 #import "MBProgressHUD+MJ.h" 3 4 @interface HMViewController () 5 @property (weak, nonatomic) IBOutlet UITextField .....
分类:
移动开发 时间:
2016-01-25 18:54:16
阅读次数:
254
1 #import "HMViewController.h" 2 3 @interface HMViewController () 4 @property (weak, nonatomic) IBOutlet UIImageView *imageView1; 5 @property (...
分类:
移动开发 时间:
2016-01-25 16:45:45
阅读次数:
190
Difference between "==null" and ".equals(null)"== reference compare;.equals() is a method;notification: while sample = null; sample.equals(null) will ...
分类:
编程语言 时间:
2016-01-25 16:38:16
阅读次数:
136
1.__block对象在block中是可以被修改、重新赋值的。2.__block对象在block中不会被block强引用一次,从而不会出现循环引用问题。API Reference对__weak变量修饰符有如下几处解释:__weak specifies a reference that does no...
分类:
其他好文 时间:
2016-01-24 14:19:22
阅读次数:
109
1 #import "NJViewController.h" 2 3 #define angle2Radian(angle) ((angle) / 180.0 * M_PI) 4 5 @interface NJViewController () 6 7 @property (weak, no...
分类:
移动开发 时间:
2016-01-24 12:52:38
阅读次数:
185
1 #import "NJViewController.h" 2 3 @interface NJViewController () 4 @property (weak, nonatomic) IBOutlet UIImageView *iconView; 5 - (IBAction)nextBt.....
分类:
移动开发 时间:
2016-01-24 12:52:20
阅读次数:
197
1 #import "NJViewController.h" 2 3 @interface NJViewController () 4 @property (weak, nonatomic) IBOutlet UIView *cutomView; 5 6 @end 7 8 @implemen...
分类:
移动开发 时间:
2016-01-24 12:50:31
阅读次数:
148