#import "ViewController.h" #import "AFNetworking.h" @interface ViewController () @end @implementation ViewController -(void)touchesBegan:(NSSet<UITouc ...
分类:
其他好文 时间:
2016-05-11 07:10:43
阅读次数:
189
Singleton.h /*专门用来保存单例代码 最后一行不要加 \ */// @interface#define singleton_interface(className) \+ (className *)shared##className;// @implementation#define s ...
分类:
其他好文 时间:
2016-05-10 12:48:13
阅读次数:
163
/**
*Addacontextualbindingtothecontainer.
*
*@paramstring$concrete
*@paramstring$abstract
*@param\Closure|string$implementation
*@returnvoid
*/
publicfunctionaddContextualBinding($concrete,$abstract,$implementation)
{
$this->contextual[$this->normaliz..
分类:
其他好文 时间:
2016-05-10 11:11:29
阅读次数:
181
《小酌重构系列》已经完成了大约1/3了,在这些文章中,我使用了一些简单的类图来描述重构策略。在之后的文章中,我可能会借助稍微复杂一些的UML类图来介绍。但是在此之前,我觉得有必要先介绍一下UML类图中6大关系了。这6大关系分别是Inheritance(继承)、Implementation(实现)、D... ...
分类:
其他好文 时间:
2016-05-08 14:58:23
阅读次数:
2607
原文转自:http://www.manio.org/cn/virtual-machine-implementation/ 997年,斯坦福的Mendel Rosenblum带着Edouard Bugnion, Scott Devine在SOSP上发了篇论文,叫做Disco: running comm ...
分类:
其他好文 时间:
2016-05-07 14:49:47
阅读次数:
155
1.打开数据库 #import "ViewController.h" #import "FMDB.h" @interface ViewController () @property (nonatomic, strong) FMDatabase *db; @end @implementation Vi ...
分类:
数据库 时间:
2016-05-07 12:51:13
阅读次数:
206
今天用Eclipse安装EGit失败:
Cannot complete the install because one or more required items could not be found.
Software being installed: Java implementation of Git - optional Http support using Apache htt...
分类:
系统相关 时间:
2016-05-07 07:47:23
阅读次数:
459
@interface XiaoCheDingWeiViewController ()
{
JGProgressHUD *hud;
UIView *_hudView;
UIWebView *webView;
NSString *IPString;
NSString *string;
}
@end
@implementation XiaoC...
分类:
移动开发 时间:
2016-05-06 16:18:19
阅读次数:
172
namespace RTT
{ namespace base { /**
* @brief This DataObject is a Lock-Free implementation,
* such that reads and writes can happen concurrently without priority
* inversions.
*...
分类:
其他好文 时间:
2016-05-06 12:48:11
阅读次数:
229
JAVA中操作Excel的有两种比较主流的工具包: JXL 和 POI 。jxl 只能操作Excel 95, 97, 2000也即以.xls为后缀的excel,个人认为已经是被淘汰的框架,而poi可以操作Excel 95及以后的版本,即可操作后缀为 .xls 和 .xlsx两种格式的excel。POI全称 Poor Obfuscation Implementation,直译为“可怜的模糊实现”,当然...
分类:
其他好文 时间:
2016-05-06 12:29:56
阅读次数:
282