本篇宗旨:simple & stupidWeakHashMap (弱引用的哈希表)
Hash table based implementation of the Map interface, with weak keys. An entry in a WeakHashMap will automatically be removed when its key is no longer in or...
分类:
编程语言 时间:
2015-05-06 09:18:34
阅读次数:
141
1 @implementation ViewController 2 3 - (void)viewDidLoad { 4 [super viewDidLoad]; 5 // Do any additional setup after loading the view, typic...
分类:
其他好文 时间:
2015-05-04 23:40:16
阅读次数:
210
一、前导程序新建一个项目,在主控制器文件中实现以下几行代码,就能轻松的完成图片在视图中的平铺。 1 #import "YYViewController.h" 2 3 @interface YYViewController () 4 5 @end 6 7 @implementation YYVi...
分类:
移动开发 时间:
2015-05-03 18:58:32
阅读次数:
148
一、语法简介1.类在OC中,一般用二个文件描述一个类,一个是.h文件,一个是.m文件爱你:1>:.h文件是类的声明文件,用于声明变量和方法。类的声明使用关键字@interface和@end。2>:.m文件是类的实现文件,用于实现.h类中声明的方法。类的实现使用关键字@implementation和@...
分类:
其他好文 时间:
2015-05-02 12:24:16
阅读次数:
136
1 #import "AppDelegate.h" 2 3 @interface AppDelegate () // 签UIAlertViewDelegate协议 4 // 协议方法按住comm键,用鼠标点进去看 5 @end 6 @implementation AppDelegate 7 -...
分类:
其他好文 时间:
2015-05-01 14:38:47
阅读次数:
379
一、简单介绍代码示例: 1 #import "YYViewController.h" 2 #import "ASIHTTPRequest.h" 3 4 @interface YYViewController () 5 6 7 @end 8 9 @implementation YYViewCo...
分类:
移动开发 时间:
2015-04-30 19:36:01
阅读次数:
132
异步请求使用与同步和队列式异步请求相同的对象,只不过又增加了另一个对象,即NSURLConnectionDelegate:
上代码:#import "ViewController.h"NSInteger totalDownLoaded = 0;@interface ViewController ()@end@implementation ViewController- (void)viewDidL...
分类:
移动开发 时间:
2015-04-30 16:09:31
阅读次数:
117
The WebDriver implementation.classselenium.webdriver.remote.webdriver.WebDriver(command_executor='http://127.0.0.1:4444/wd/hub',desired_capabilities=N...
The ActionChains implementation,classselenium.webdriver.common.action_chains.ActionChains(driver)Bases:objectActionChains are a way to automate low le...
The Alert implementation.classselenium.webdriver.common.alert.Alert(driver)Bases:objectAllows to work with alerts.Use this class to interact with aler...