码迷,mamicode.com
首页 >  
搜索关键字:interface method/field    ( 13706个结果)
ISP(Interface Segregation Principle),接口隔离原则
ISP(Interface Segregation Principle),接口隔离原则   它要求如下: ①  一个类对另一个类的依赖性要建立在最小接口上。 ②  使用多个专门的接口比使用单一的总接口要好。 ③  没有关系的接口不可合并成一个臃肿的大接口。 ④  对于臃肿的大接口应分成几个合适的小接口。   接口分离方法: 1、使用委托分离接口:把请求委托给别的接口的实现类来完成...
分类:其他好文   时间:2014-09-03 16:59:16    阅读次数:176
JVMS Specification(3)-The class File Format
3 The class File Format 3.1 The ClassFile Structure 3.2 The Internal Form of Names 3.2.1 Binary Class and Interface Names 3.2.2 Unqualified Names 3.3 Descriptors and Signatures 3.3.1 Grammar Not...
分类:其他好文   时间:2014-09-03 16:57:58    阅读次数:358
ios-类名后面
@interface GroupListViewController (Network) - (void)setRequest:(ASIHTTPRequest *)request;- (ASIHTTPRequest *)request;@end此种格式,类名后面是何意?(???)
分类:移动开发   时间:2014-09-03 16:19:56    阅读次数:213
简单的没有关卡的关灯游戏
有两个图片新建一个CloseLight类CloseLight.himport<UIKit/UIKit.h> @interfaceCloseLight:UIViewController @property(nonatomic,assign)NSIntegertag; @endCloseLight.m#import"CloseLight.h" @interfaceCloseLight() @end @implementationCloseLight -(id)initWithNib..
分类:其他好文   时间:2014-09-03 11:25:56    阅读次数:205
target-action设计模式--主要为Button的方法重写
新建两个类MainViewController/ButtonViewButtonView.h#import<UIKit/UIKit.h> @interfaceButtonView:UIView //实现target-action设计模式 //点击的时候让谁去执行方法 @property(nonatomic,assign)idtarget; //要执行的方法 @property(nonatomic,assign)SELaction; //..
分类:其他好文   时间:2014-09-03 11:25:27    阅读次数:254
Designers, please follow the guidelines
Skype releasedbig updatefor its iOS application last week. It brought in a major overhaul of not only an interface but a product itself. I have to adm...
分类:其他好文   时间:2014-09-03 10:55:46    阅读次数:325
java的动态代理
JDK的动态代理public interface Subject { Object request(); void hello();}public class RealSubject implements Subject{ public RealSubject(){}; pu...
分类:编程语言   时间:2014-09-03 09:37:06    阅读次数:215
使用ZXingObjC扫描二维码横竖屏对应
/** 根据屏幕的方向设置扫描的方向 * @author maguang * @param parameter * @return result */- (void)showaCapture{ CGAffineTransform transform; if (self.interface...
分类:其他好文   时间:2014-09-03 08:22:16    阅读次数:422
iOS: 填充数据表格
//// main.m// Hello//// Created by lishujun on 14-8-28.// Copyright (c) 2014年 lishujun. All rights reserved.//#import // 视图控制器对象@interface HelloWo...
分类:移动开发   时间:2014-09-03 01:27:06    阅读次数:251
iOS:导航栏的工具条和导航条
//// main.m// Hello//// Created by lishujun on 14-8-28.// Copyright (c) 2014年 lishujun. All rights reserved.//#import @interface TestViewControlle...
分类:移动开发   时间:2014-09-02 21:07:25    阅读次数:292
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!