--------------- ViewController.m ---------------#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIButton *h...
分类:
其他好文 时间:
2015-07-28 22:34:17
阅读次数:
106
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIButton *head;- (IBAction)moveClick:(UIButton *) sender;- ...
分类:
其他好文 时间:
2015-07-28 20:43:06
阅读次数:
96
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIButton *head;- (IBAction)topClick;- (IBAction)bottomClick...
分类:
其他好文 时间:
2015-07-28 20:39:38
阅读次数:
102
--------------- ViewController.m ---------------#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UITextField...
分类:
其他好文 时间:
2015-07-28 15:56:52
阅读次数:
120
上一篇讲了Block的简单实用,这一篇则是讲述Block的最经常也是比较简单的用法,个人认为这是block相对其他页面传值方式比较好的一个用处。也顺便总结下这两天对Block的理解的一些注意点。对于页面传值这种情况,我们一般在程序里有几种处理的方法。
1、设置Delegate
2、使用NotificationCenter
3、使用Block
4、KVO页面传值
5、NSUserDefault等文件存...
分类:
其他好文 时间:
2015-07-27 18:52:45
阅读次数:
112
看惯了什么tempSelf weakSelf,来点高大的#define weakify(...) \ rac_keywordify \ metamacro_foreach_cxt(rac_weakify_,, __weak, __VA_ARGS__)#define unsafeify(....
分类:
其他好文 时间:
2015-07-25 16:35:17
阅读次数:
207
__weak弱引用并不持有对象,所以赋值给__weak修饰符的变量也不会改变计数器的值.
main.m
id __strong obj3 =
nil;
id __weak obj1=
nil;
/*
id __weak obj1 = obj;
编译器的模拟代码如下:
id obj1;
ob...
分类:
移动开发 时间:
2015-07-25 15:20:48
阅读次数:
277
SQLSERVER Account Weak Password Detection Automatic By System API
分类:
数据库 时间:
2015-07-22 22:17:08
阅读次数:
562
#import "ShowTimeViewController.h"@interface ShowTimeViewController ()@property (weak, nonatomic) IBOutlet UIButton *btnBigen;@property (weak, nonatom...
分类:
Web程序 时间:
2015-07-22 20:29:23
阅读次数:
124
有人问,在ARC下,IBOutlets到底应该定义成strong 还是 weak ?支持这个答案的人最多,答案仅是摘自官方文档的一个片段:
From a practical perspective, in iOS and OS X outlets should be defined as declared properties. Outlets should generally b...
分类:
移动开发 时间:
2015-07-22 19:05:49
阅读次数:
200