异步请求使用与同步和队列式异步请求相同的对象,只不过又增加了另一个对象,即NSURLConnectionDelegate:
上代码:#import "ViewController.h"NSInteger totalDownLoaded = 0;@interface ViewController ()@end@implementation ViewController- (void)viewDidL...
分类:
移动开发 时间:
2015-04-30 16:09:31
阅读次数:
117
//// Book.h// lanou//// Created by lanou3g on 15/4/29.// Copyright (c) 2015年 lanou3g. All rights reserved.//#import @interface Book : NSObject{ NSStr....
分类:
其他好文 时间:
2015-04-29 23:26:33
阅读次数:
219
1.添加代理:
@interface ViewController ()
2.添加存储数组和视图:
//视图
@property(nonatomic,strong)UIPickerView *pickerView;
//日期
@property(nonatomic,strong)NSMutableArray *dayDateArray;
//消失
@property...
分类:
其他好文 时间:
2015-04-29 21:48:17
阅读次数:
153
一、JNDI概述
JNDI(JavaNaming Directory Interface)--java命名和目录接口,是一组在Java应用中访问命名和目录服务的API。为开发人员提供了查找和访问各种命名和目录服务的通用、统一的接口,类似JDBC,都是构建在抽象层上。是J2EE的标准之一,所有的J2EE容器都必须提供一个JNDI的服务。
JNDI的命称可能会让人产生混淆...
分类:
其他好文 时间:
2015-04-29 19:48:47
阅读次数:
118
Runtime类理解
虽然我们知道在编写java程序时,只有线程的概念,依托于JVM这个进程,但是API提供了Runtime这个类,(Every Java application has a single instance of class Runtime that allows the application to interface with the environment in w...
分类:
其他好文 时间:
2015-04-29 15:04:45
阅读次数:
144
ViewController.h中的代码如下:#import @interface ViewController : UIViewController @end ViewController.m中的详细代码:- (void)viewDidLoad { [super vie...
分类:
其他好文 时间:
2015-04-29 11:29:37
阅读次数:
186
适配器模式:将一个类的接口,转换成客户期望的另一个接口。适配器让原本接口不兼容的类可以合作无间。——《HEAD FIRST 设计模式》 我的golang代码: package adapter import "fmt" type Duck interface { Quack() Fly()
} typ...
分类:
其他好文 时间:
2015-04-29 00:13:07
阅读次数:
121
//少说废话,上代码:
import java.util.*;
interface Instrument
{
static final int i = 2;
void tune();
}
//测试多个接口的测试
interface Chord
{
void shake();
}
interface RockCase
{
void cover();
}
//利用抽象类的情况;...
分类:
其他好文 时间:
2015-04-28 23:05:10
阅读次数:
315
其中是利用, 正方形, 长方形, 圆形;来继承接口All 接口, 来实现All的情况。
少说废话,上代码:
import java.util.*;
interface S
{
void s();
}
interface C
{
void c();
}
interface All extends S,C
{
//这是实现接口的多重的继承
}
class Square imple...
分类:
编程语言 时间:
2015-04-28 23:04:42
阅读次数:
386
JNDI是 Java 命名与目录接口(Java Naming and Directory Interface),在J2EE规范中是重要的规范之一,不少专家认为,没有透彻理解JNDI的意义和作用,就没有真正掌握J2EE特别是EJB的知识。那么,JNDI到底起什么作用?要了解JNDI的作用,我们可以从“...
分类:
其他好文 时间:
2015-04-28 22:37:15
阅读次数:
160