码迷,mamicode.com
首页 >  
搜索关键字:interface method/field    ( 13706个结果)
iOS Interface Builder:在.xib文件中加载另一个.xib文件
在开发中,经常会用到一个需要重复使用的模块,比如好友列表中每个用户的展示或每条动态,这些都是相同的模版,这样我们就可以把这个部分提取出来放到一个单独的.xib中。那么提取出的.xib如何在其他.xib中使用呢?接下来就说一下如何在.xib中加载其他的.xib。大概结构是这样的:创建项目,项目名称叫C...
分类:移动开发   时间:2014-11-19 13:56:51    阅读次数:236
工厂模式之简单工厂
工厂模式定义:实例化对象,用工厂方法代替new操作。接口(IBase):public interface IBase{ void Excute();}实现类A(BaseAImpl):public class BaseAImpl : IBase{ public void Excute() ...
分类:其他好文   时间:2014-11-19 13:55:29    阅读次数:152
【ASP.NET】DataContract序列化,反序列化对象中包含用接口声明的属性时的处理方法
为此对象添加KnownType属性(Attribute)。类型为用接口声明的属性(Property)的所有可能类型。示例如下: 1 public interface IKey 2 { 3 [DataMember] 4 int Id { get; set...
分类:Web程序   时间:2014-11-19 12:33:07    阅读次数:133
UIScrollView
#import "QYViewController.h" @interface QYViewController ()UIScrollViewDelegate> {     UIImageView *_imageView; } @end @implementation QYViewController - (void)viewDidL...
分类:其他好文   时间:2014-11-19 11:19:17    阅读次数:179
图片异步加载 ,KVO
图片异步下载类目:.h#import typedef void (^ImageBlock)(UIImage *img);@interface UIImage (ImageDown)//第一个参数获得一个url的字符串(图片)//第二参数 block块是用来将解析出来的image进行第二次赋值+(UI...
分类:其他好文   时间:2014-11-19 07:08:40    阅读次数:137
桥接模式
1、模式定义 桥接模式(Bridge Pattern):将抽象部分与它的实现部分分离,使它们都可以独立地变化。它是一种对象结构型模式,又称为柄体(Handle and Body)模式或接口(Interface)模式。 2、模式结构 桥接模式包含如下角色: Abstraction:抽象类 RefinedAbstraction:扩充抽象类 Implementor:实现类接口 Conc...
分类:其他好文   时间:2014-11-19 01:33:03    阅读次数:174
UIScrollView
#import "QYViewController.h" @interface QYViewController ()UIScrollViewDelegate> {     UIImageView *_imageView; } @end @implementation QYViewController - (void)viewDidL...
分类:其他好文   时间:2014-11-19 01:21:03    阅读次数:152
Fragments | Android Developer
DefinitionA Fragment represents a behavior or a potion of user interface in an Activity.You can combile multiple fragments in a single activity to bui...
分类:移动开发   时间:2014-11-18 23:33:35    阅读次数:373
Cacti之交换机端口无法正常显示
问题背景:今天使用cacti监控系统监控H3C交换机时,在添加的图标上面无法显示完整的交换机端口序列号解决方案:1、登录到cacti管理页面,打开Console->Settings->Visual ->MaximumFieldLength:默认15,修改为302、修改流量图模板参数,console–GraphTemplates–Interf..
分类:其他好文   时间:2014-11-18 16:09:44    阅读次数:303
Reporting in HANA
HANA 1.0 provides various interface reporting options?ODBO – OLE DB for OLAP Microsoft-driven specification for multidimensional ( cross-tab style ) r...
分类:其他好文   时间:2014-11-17 15:36:32    阅读次数:344
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!