**************#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
How to modify analog output range of Arduino DueArduinoDue does not have an analog output voltage from 0 V toVref,but from1/6 to 5/6 of the reference ...
分类:
其他好文 时间:
2015-09-14 01:49:54
阅读次数:
138
ARM Architecture Reference Manual Arm 指令框架手册 1. 处理器7种工作模式 Processor modeMode numberDescriptionUser usr0b10000Normal program execution modeFIQ ...
分类:
其他好文 时间:
2015-09-13 21:38:33
阅读次数:
236
这三个方法是transform最长用的,所以在这里给大家提一下!@interface ViewController ()@property (weak, nonatomic) IBOutlet UIButton *btn;@end@implementation ViewController- (IB...
分类:
其他好文 时间:
2015-09-12 17:44:20
阅读次数:
174
1、内存管理-黄金法则The basic rule to apply is everything that increases the reference counter with alloc, [mutable]copy[withZone:] or retain is in charge of t...
分类:
其他好文 时间:
2015-09-12 12:06:37
阅读次数:
150
swift 2.0学习与总结一一:属性策略(OC中的叫法)strong: 在Swift中是默认的weak: 通过weak关键词申明weak var delegate: UITextFieldDelegate?readonly,readwrie 直接通过声明变量var,声明常量let的方式来指明cop...
分类:
移动开发 时间:
2015-09-11 22:12:56
阅读次数:
318
@property与@synthesize是成对出现的,可以自动生成某个类成员变量的存取方法。在Xcode4.5以及以后的版本,@synthesize可以省略。1.atomic与nonatomicatomic:默认是有该属性的,这个属性是为了保证程序在多线程情况,编译器会自动生成一些互斥加锁代码,避...
分类:
移动开发 时间:
2015-09-11 22:11:17
阅读次数:
353
1. "智能指针"是行为像指针的对象,但它们能提供指针没有的功能:shared_ptr,weak_ptr,auto_ptr(见条款13)实现对堆内存的自动管理,STL的迭代器实现对整个容器的遍历等. 真正的指针的优势在于支持继承层次中派生类指针向基类指针的转换(当然标准库shared_ptr,we....
分类:
编程语言 时间:
2015-09-11 20:54:12
阅读次数:
206
只考虑ARC环境:自己写的delegate,使用weak,不用assign。weak和assign的区别,当指向的对象被释放掉之后,weak指针会自动置为nil。而assign指针会指向一个无效的地址。在异步环境下,经常会遇到异步回调的时候调用delegate的回调方法,[self.delegate...
分类:
数据库 时间:
2015-09-11 19:02:22
阅读次数:
220