Hownew 父类或接口(){继承父类或者实现接口所需的内容}; //注意理解这里的分号补全以下内容 1 interface Inter 2 { 3 void method(); 4 } 5 class Test 6 { 7 //补全代码,要求通过内部类 8 9 10 }1...
分类:
其他好文 时间:
2015-08-02 21:24:29
阅读次数:
114
为使应用程序之间能够彼此通信,Android提供了IPC (Inter Process Communication,进程间通信)的一种独特实现: AIDL (Android Interface Definition Language, Android接口定义语言)。 建立两个Android项目...
分类:
移动开发 时间:
2015-08-02 20:13:16
阅读次数:
155
// UI-城市列表
//
// Created by jzq_mac on 15/7/30.
// Copyright (c) 2015年 jzq_mac. All rights reserved.
//
#import "ViewController.h"
#import "DetailViewController.h"
@inter...
分类:
移动开发 时间:
2015-07-31 09:07:06
阅读次数:
155
What?Convert the interface of a class into another interface
that the clients expect. Adapter lets classes work together
that could not otherwise because of incompatible inter-
faces. ——GOF
先来个例子:...
分类:
其他好文 时间:
2015-07-29 01:04:53
阅读次数:
146
在WDF的PCIe驱动程序中,共有四个.h文件(Public.h Driver.hDevice.h Trace.h)。本文将分别对四个文件源代码进行详细的解释。Public.h 1 #ifndef _USER_H 2 #define _USER_H 3 // 4 // Define an Inter...
var obj = document.getElementById(obj_Id);obj.select();
window.parent.document.body.focus(); // <——–添加该行后,真的成功了
path = document.selection.createRange().text;
直接上代码,如果不增加第3行代码,浏览器会报拒绝访问;如果设置了Inter...
分类:
Web程序 时间:
2015-07-28 21:13:34
阅读次数:
257
代理就是自己的事让别人来做
在OC中就是协议方要做的事给代理方来实现
背景情况
A父界面 B子界面 当B返回A的时候 要让A的背景颜色变为红色 这就要给A传一个color的参数
写两个ViewController
在RootViewController.h中写
#import
#import "WJJFirstViewController.h"
//4、把协议进入进来
@inter...
分类:
其他好文 时间:
2015-07-28 21:09:25
阅读次数:
124
概述:I²C是Inter-Integrated Circuit的缩写,发音为"eye-squared cee" or "eye-two-cee", 它是一种两线接口。I²C 只是用两条双向的线,一条 Serial Data Line (SDA) ,另一条Serial Clock (SCL)。SCL:...
分类:
其他好文 时间:
2015-07-27 18:31:44
阅读次数:
134
转载:http://www.cnblogs.com/chu888chu888/archive/2012/12/22/2828962.html作者:Leonel Hilario翻译:Terry li -GBin1.com英文:5 Top jQuery Chart Libraries for Inter...
分类:
Web程序 时间:
2015-07-23 19:13:08
阅读次数:
133
首先了解一下TCP/IP协议中的端口指的是什么呢?如果把IP地址比作一间房子 ,端口就是出入这间房子的门。真正的房子只有几个门,但是一个IP地址的端口 可以有65536(即:256×256)个之多!端口是通过端口号来标记的,端口号只有整数,范围是从0 到65535(256×256-1)。在Inter...
分类:
其他好文 时间:
2015-07-21 12:11:41
阅读次数:
144