1 #import "HMViewController.h" 2 3 @interface HMViewController () 4 @property (weak, nonatomic) IBOutlet UIImageView *imageView1; 5 @property (...
分类:
移动开发 时间:
2016-01-25 16:45:45
阅读次数:
190
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 5 @property (weak, nonatomic) IBOutlet UIView *customView; 6 - (IBAction)btnCli...
分类:
移动开发 时间:
2016-01-24 12:50:39
阅读次数:
203
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
1 #import "NJViewController.h" 2 3 @interface NJViewController () 4 @property (weak, nonatomic) IBOutlet UIView *customView; 5 6 @end 7 8 @impleme...
分类:
移动开发 时间:
2016-01-24 00:30:14
阅读次数:
141
1 #import "NJViewController.h" 2 3 @interface NJViewController () 4 @property (weak, nonatomic) IBOutlet UIImageView *iconView; 5 6 @end 7 8 @impl...
分类:
移动开发 时间:
2016-01-23 22:59:22
阅读次数:
249
FirstViewController的代码import UIKitclass FirstViewController: UIViewController, SecondViewControllerDelegate { @IBOutlet weak var showTextLabel: UIL...
分类:
编程语言 时间:
2016-01-22 02:54:02
阅读次数:
182
参考文献:iOS ARC 完全指南提示:本文中所说的"实例变量"即是"成员变量","局部变量"即是"本地变量"一、简介ARC是自iOS 5之后增加的新特性,完全消除了手动管理内存的烦琐,编译器会自动在适当的地方插入适当的retain、release、autorelease语句。你不再需要担心内存管理...
分类:
其他好文 时间:
2016-01-21 01:43:47
阅读次数:
213