1 #import "HMViewController.h" 2 3 @interface HMViewController () 4 @property (weak, nonatomic) IBOutlet UIImageView *imageView; 5 @end 6 7 @implem...
分类:
编程语言 时间:
2015-09-18 01:56:29
阅读次数:
176
// strong : 一般对象 weak : UI控件#define IconKey @"icon"#define DescKey @"desc"#import "ViewController.h"@interface ViewController ()- (IBAction)previous;-...
分类:
移动开发 时间:
2015-09-17 16:56:28
阅读次数:
238
// strong : 一般对象// weak : UI控件#define MJIconKey @"icon"#define MJDescKey @"desc"#import "MJViewController.h"@interface MJViewController ()- (IBAction)...
分类:
移动开发 时间:
2015-09-17 11:42:01
阅读次数:
262
identity inspector 的key path 可以用来做圆角按钮和边框。layer.cornerRadius number 圆角按钮使用代理模式的时候,要注意,A 和 B的引用之间会循环引用,导致内存无法回收。 可以使引用设置为weak。 navigationBar 默认是透明的,颜色会...
分类:
移动开发 时间:
2015-09-15 21:33:56
阅读次数:
220
这也是一个面向对象的问题,作为实例对象的你需要一步一步去攻城拔寨。待各处插满了自己的旗帜,回过头来,你会感谢一路走来的自己!一、入门 面向对象编程基础(类和继承,变量和方法的作用域,MVC基本概念,分类)方法和函数(消息,类定义和属性,与C/C++的混合编程)内存管理(strong/weak, AR...
分类:
移动开发 时间:
2015-09-15 11:06:06
阅读次数:
236
************#import "HMViewController.h"@interface HMViewController () @property (nonatomic, weak) UIActivityIndicatorView *loadingView;@end@implement...
分类:
移动开发 时间:
2015-09-15 10:53:47
阅读次数:
247
**************#import "HMViewController.h"#import "MBProgressHUD+MJ.h"@interface HMViewController ()@property (weak, nonatomic) IBOutlet UITextField *...
分类:
移动开发 时间:
2015-09-14 15:25:46
阅读次数:
224
*****************#import "HMViewController.h"#import "MBProgressHUD+MJ.h"@interface HMViewController ()@property (weak, nonatomic) IBOutlet UITextFiel...
分类:
移动开发 时间:
2015-09-14 15:22:34
阅读次数:
186
这三个方法是transform最长用的,所以在这里给大家提一下!@interface ViewController ()@property (weak, nonatomic) IBOutlet UIButton *btn;@end@implementation ViewController- (IB...
分类:
其他好文 时间:
2015-09-12 17:44:20
阅读次数:
174
swift 2.0学习与总结一一:属性策略(OC中的叫法)strong: 在Swift中是默认的weak: 通过weak关键词申明weak var delegate: UITextFieldDelegate?readonly,readwrie 直接通过声明变量var,声明常量let的方式来指明cop...
分类:
移动开发 时间:
2015-09-11 22:12:56
阅读次数:
318