首先是一个库:然后设置一个工具类.h 1 @interface HMFoundLocation : NSObject 2 3 AS_SINGLETON(HMFoundLocation) 4 5 @property(nonatomic,strong)NSString *address; 6 7 ...
分类:
移动开发 时间:
2014-10-24 18:02:48
阅读次数:
240
#import #import typedef void (^block)(void);@interface FunctionRunTime : NSObject+ (CGFloat)runTimeBlock:(block)block;@end#import "FunctionRunTime.h"@...
分类:
移动开发 时间:
2014-10-24 14:33:56
阅读次数:
174
网络上的所有事物都被抽象为资源(resource); 每个资源对应一个唯一的资源标识符(resource identifier); 通过通用的连接器接口(generic connector interface)对资源进行操作; 对资源的各种操作不会改变资源标识符; 所有的操作都是无状态的(state...
分类:
其他好文 时间:
2014-10-24 12:45:27
阅读次数:
163
->netsh->pushd interface ip->set address "本地连接" static 192.168.1.2 255.255.255.0 192.168.1.1->set dns name="本地连接" source=static addr=192.168.1.1 regis...
给一个filter添加接口,步骤如下:1、建立一个声明接口的头文件“Interface.h” ,内容包括指定接口的GUID(使用GuidGen.exe)以及接口函数的声明。 记得加 initguid.h 的include,不然使用时会出现"无法解析的外部符号_IID_"错误2、在Cfilter类的头文件filter.h开头添加 #include “Interface.h” 。3、在Cfil...
分类:
其他好文 时间:
2014-10-24 09:16:01
阅读次数:
214
1、定义接口 使用interface来定义一个接口。接口定义同类的定义类似,也是分为接口的声明和接口体,其中接口体由常量定义和方法定义两部分组成。定义接口的基本格式如下:[修饰符] interface 接口名 [extends 父接口名列表]{[public] [static] [final] 常....
分类:
编程语言 时间:
2014-10-24 09:09:03
阅读次数:
248
public interface Subject {public void registerObserver(Observer o);public void removeObserver(Observer o);public void notifyObservers();}public interf...
分类:
其他好文 时间:
2014-10-24 06:52:09
阅读次数:
186
代码1: #import?<Foundation/Foundation.h>
@interface?Animal?:?NSObject
-?(void)eat;
@end
@implementation?Animal
-?(void)eat
{
????NSLog(@"Animal-eat");
}
@end
@interface?Dog?:?Ani...
分类:
其他好文 时间:
2014-10-24 00:29:57
阅读次数:
168
直接上代码:示例:(在storyboard中拖两个控件textField、一个UIButton,连线(userNameText、password、login))@interface ViewController()@property(nonatomic,weak)IBOutlet UITextFie...
分类:
移动开发 时间:
2014-10-23 22:37:39
阅读次数:
216
1. Fragments A Fragment represents a behavior or a portion of user interface in an Activity. You can combine multiple fragments in a single activity.....
分类:
移动开发 时间:
2014-10-23 22:20:50
阅读次数:
458