一、什么是java native method? "A native method is a Java method whose implementation is provided by non-java code." 简单来讲Native Method就是java调用非java代码的接口,该方法 ...
分类:
编程语言 时间:
2016-08-01 12:29:42
阅读次数:
161
instancesRespondToSelector与respondsToSelector的区别 Test1.h @interface Test1 : NSObject - (void)objectFun; + (void)classFun; @end Test1.m @implementation ...
分类:
其他好文 时间:
2016-07-30 18:12:27
阅读次数:
173
一,效果图。 二,工程图。 三,代码。 AppDelegate.m #import "AppDelegate.h" //加入头文件 #import "DrawMapViewController.h" @implementation AppDelegate - (BOOL)application:(U ...
分类:
其他好文 时间:
2016-07-22 10:15:24
阅读次数:
144
一、Window和WindowManagerWindow:表示一个窗口,从下面Window的源码中可以看出它有且只有一个实现类PhoneWindow。
The only existing implementation of this abstract class is
* android.policy.PhoneWindow, which you should instantiat...
转自 面向对象的三大基石面向对象的三大基石(封装,继承和复合,多态) 三大基石之一 封装 1.什么是封装? 封装(encapsulation)又叫隐藏实现(Hiding the implementation)。就是只公开代码单元的对外接口,而隐藏其具体实现。 比如你的手机,手机的键盘,屏幕,听筒等, ...
分类:
其他好文 时间:
2016-07-21 23:30:16
阅读次数:
275
[精通Objective-C]键值编程参考书籍:《精通Objective-C》【美】 Keith Lee目录精通Objective-C键值编程
目录
键值编码KVC
键值观察KVO
键值编码KVC键值编码API可以直接访问类的属性:@interface Hello : NSObject
@property NSString* greeting;
@end@implementation Hello
-...
分类:
其他好文 时间:
2016-07-20 17:58:38
阅读次数:
242
UIViewController使用:
ViewController.m里面的代码:#import "ViewController.h"
#import "ViewController02.h"
@interface ViewController ()@end@implementation ViewController//当屏幕被点击时,调用此函数
- (void) touchesBegan:(N...
分类:
移动开发 时间:
2016-07-19 11:13:39
阅读次数:
177
桥梁模式是对象的结构模式。又称为柄体(Handle and Body)模式或接口(Interface)模式。桥梁模式的用意是“将抽象化(Abstraction)与实现化(Implementation)脱耦,使得二者可以独立地变化”。 桥梁模式的用意 桥梁模式虽然不是一个使用频率很高的模式,但是熟悉这 ...
分类:
其他好文 时间:
2016-07-17 21:08:27
阅读次数:
198
1.9 GlassFish Server Tools GlassFish Server is a compliant implementation of the Java EE 7 platform. In addition to supporting all the APIs described ...
分类:
编程语言 时间:
2016-07-17 13:24:39
阅读次数:
158
Introduction This chapter will present an implementation recipe for an enterprise log storage and a search and analysis solution based on the Storm pr ...
分类:
其他好文 时间:
2016-07-16 11:29:54
阅读次数:
256