码迷,mamicode.com
首页 >  
搜索关键字:interface method/field    ( 13706个结果)
TGJSBridge使用
1、在ViewController.h中#import #import "TGJSBridge.h"@interface BaseViewController : UIViewController@property(nonatomic,strong)TGJSBridge *jsBridge;@pro...
分类:Web程序   时间:2014-08-17 15:31:32    阅读次数:1436
顺序存储结构模拟
我们过去介绍的数据结构都不是线性存储的结构,我们今天就来模拟一个最简单的数据结构基于数组构建存储连续的数据结构. 1.线性表顺序存储结构的接口 /**   * 指的是用一段地址连续的存储单元一次存储线性表的数据元素   * @ClassName: ISeqList    */   public interface ISeqList {      /**     ...
分类:其他好文   时间:2014-08-17 13:06:52    阅读次数:305
String结构模拟
我们开始模拟一下大家最熟悉的String数据结构的模拟,这个相信做java的没有不熟悉的吧.那我们开始 1.操作接口   public interface IString {          public void clear();          //将一个已经存在的串置成空串      public boolean isEmpty();    //判断当前串是否为空,为空...
分类:其他好文   时间:2014-08-17 13:05:52    阅读次数:278
kvo-观察者-iOS
#import @interface Child : NSObject@property (nonatomic,assign) int age;-(id) initWithAge:(int) age;@end#import "Child.h"@implementation Child-(id) in...
分类:移动开发   时间:2014-08-17 12:58:22    阅读次数:204
JNDI 是什么
JNDI是 Java 命名与文件夹接口(Java Naming and Directory Interface),在J2EE规范中是重要的规范之中的一个,不少专家觉得,没有透彻理解JNDI的意义和作用,就没有真正掌握J2EE特别是EJB的知识。那么,JNDI究竟起什么作用?要了解JNDI的作用,我们...
分类:其他好文   时间:2014-08-17 10:20:22    阅读次数:216
对象属性操作-ios
#import @class Author;@interface Books : NSObject{ @private NSString *color; int book_id; NSString *box; Author *author; NSArray *r...
分类:移动开发   时间:2014-08-17 03:48:31    阅读次数:226
设计模式——享元模式
Flyweight 直译为蝇量。就其表示的模式来说,翻译成享元,确实是不错的package designpattern.structure.flyweight;public interface Flyweight { void action(int arg);}package designpa...
分类:其他好文   时间:2014-08-17 01:03:51    阅读次数:187
设计模式——适配器
又分为三种:类的适配器模式:package designpattern.structure.adapter.classadapter;public interface ITarget { public void method1(); public void method2();}pack...
分类:其他好文   时间:2014-08-16 20:58:51    阅读次数:138
单例模式-ios
#import @interface UserContext : NSObject @property (nonatomic,copy) NSString *name;@property (nonatomic,copy) NSString *emial;+(id) shareUsercontext;...
分类:移动开发   时间:2014-08-16 19:42:00    阅读次数:198
OBject copy 和retain区别
@interface Person : NSObject//retian : release 旧值,retain 新值@property(nonatomic,retain) Book *book;//copy:release旧值,copy 新值@property(nonatomic,retain) ...
分类:其他好文   时间:2014-08-16 16:20:50    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!