属性定义@interface Nothin : NSObject@property NSString *prop;@end访问属性 Nothin *nothin = [Nothin new]; //get [nothinprop]; //set [nothin setProp: @"Nothin"]...
分类:
其他好文 时间:
2014-07-22 08:13:34
阅读次数:
302
#import <Foundation/Foundation.h> @interface NSString (InputCheck) - (BOOL) validateEmail; - (BOOL) validateMobile; - (BOOL) validateqq; - (BOOL) validateRealName; - (BOOL) validateNickName; - (BOO...
分类:
移动开发 时间:
2014-07-21 10:27:02
阅读次数:
211
百度找了一下没找到,谷歌搜一下就出来了(会点英语就是好) 直接在注解上面加@Inherited @Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface MyAnnotation {
} 原来C...
分类:
其他好文 时间:
2014-07-21 10:15:56
阅读次数:
482
【Interface Property】 Properties can be declared on aninterface (C# Reference). 按如下形式实现interfac来避免冲突。 在没有interface前缀的情况下,编译器不会报错,2个interface引用同一...
分类:
其他好文 时间:
2014-07-21 10:03:52
阅读次数:
253
最近看的关于网络爬虫和模拟登陆的资料,发现有这样一个包mechanize ['mek?.na?z]又称为机械化的意思,确实文如其意,确实有自动化的意思。mechanize.Browser and mechanize.UserAgentBase implement the interface of u...
分类:
其他好文 时间:
2014-07-20 10:13:11
阅读次数:
213
先从一个例子开始讲起,以下是jdk1.7中的迭代器接口的代码(去掉了注释的部分): public interface Iterator { boolean hasNext(); E next(); void remove();} 程序开发的老油条们都不太喜欢这个接口的remove方法,原因可能是: ...
分类:
其他好文 时间:
2014-07-19 23:01:14
阅读次数:
206
从xcode5/iOS SDK 7.0开始,新建Single View Application默认界面是*.storyboard文件如果删除*.storyboard新建自定义的xib文件,然后在Project Settings里设置的Main Interface为xib文件的话,运行时会报NSNul...
分类:
其他好文 时间:
2014-07-19 18:07:21
阅读次数:
205
// Copyright (c) 2014年 戴维营教育. All rights reserved.#import "ViewController.h"#import @interface ViewController (){ AVAudioPlayer *player;// 建立一个对象 NSA....
分类:
其他好文 时间:
2014-07-19 11:32:38
阅读次数:
214
一、插件功能:提供多种读取Excel的方式,如NPOI、Com、Aspose,调用接口一致,包括Excel文件路径,sheet名称、读取是否包含列头(即Excel第一行是否为列头行)二、实现思路 2.1 定义一个接口,该接口提供一个读取Excel的公共方法 public interface IE.....
分类:
其他好文 时间:
2014-07-19 09:13:47
阅读次数:
170
1.修改 ip地址 子网掩码 默认网关
netsh interface ip set address "本地连接" static 192.168.1.23 255.255.255.0 192.168.1.1
2.修改DNS
netsh interface ip set dns "本地连接" static 192.168.1.1 primary
3.自动获取ip地址
netsh inter...
分类:
其他好文 时间:
2014-07-19 02:46:16
阅读次数:
224