// Person.h #import @interface Person : NSObject @end // Person.m #import "Person.h" @implementation Person - (void)dealloc { NSLog(@"%s", __func__); ... ...
分类:
其他好文 时间:
2017-08-26 15:08:46
阅读次数:
133
常用API 1 API概述 2 Scanner类与String类 3 StringBuilder类 NO.one API概述 1.1 API概述 API(Application Programming Interface) : 应用程序编程接口 编写一个机器人程序去控制机器人踢足球,程序就需要向机器 ...
分类:
编程语言 时间:
2017-08-26 15:03:40
阅读次数:
166
阅读了《架构探险》这本书之后简单梳理一下自己实现IOC的基本流程 首先要自己定义一个注解 这个注解标记在类中的哪个属性 ...
分类:
其他好文 时间:
2017-08-26 12:45:55
阅读次数:
145
(文章的部分内容参考了《设计模式之禅》一书,大家也可以读读看,内容写的非常好) 什么是模板方法模式 它的定义如下: 定义一个操作中的算法的框架,而将一些步骤延迟到子类中。使得子类可以不改变一个算法的结构即可重定义该算法的某些特定步骤。 读起来很绕口,其实通俗的说就是父类里面定义一些抽象方法,自己不去 ...
分类:
其他好文 时间:
2017-08-26 04:42:07
阅读次数:
191
// Person.h #import @class Car; //#import "Car.h" // 由于import是一个预编译指令, 他会将""中的文件拷贝到import所在的位置。 // 并且import有一个特点, 只要""中的文件发生了变化, 那么import就会重新拷贝一次(更新操作... ...
分类:
其他好文 时间:
2017-08-25 15:59:22
阅读次数:
178
// // Person.h #import #import "Room.h" #import "Car.h" #import "Dog.h" @interface Person : NSObject { Room *_room; Car *_car; Dog *_dog; } /* - (void... ...
分类:
其他好文 时间:
2017-08-25 14:52:52
阅读次数:
161
package mbeanTest; public interface HelloWorldMBean { public String getHello(); public void setHello(String hello); public Object getInstance(); publi... ...
分类:
其他好文 时间:
2017-08-25 13:49:58
阅读次数:
139
// // ViewController.m // UIPickerViewAll #import "ViewController.h" @interface ViewController () @end @implementation ViewController /* UIPickView控件常 ...
分类:
移动开发 时间:
2017-08-25 12:31:02
阅读次数:
252
/** * * @author administror * 在java中,需要去extends 继承java.rmi.Remote 接口,才能称为在于服务器流的远程对象。 * 各客服端调用 * */public interface Hello extends Remote { //实现了Remote ...
分类:
其他好文 时间:
2017-08-25 12:16:37
阅读次数:
182
1.swift注重使用点语法,开始时会有点不习惯。OC使用的一些代码习惯要改改。2.在OC中我们常用#pramgram mark #warning之类的标记注释,在swift中这些不能用了,我们要改为//MARK:注释 //FIXME:注释 //TODO:提示、注释3.OC中常常@interface ...
分类:
编程语言 时间:
2017-08-25 09:38:17
阅读次数:
242