JeeLiu / DesignPattern

根据《大话涉及模式》敲的代码,OC版。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DesignPattern

根据《大话设计模式》敲的代码,OC版。掘金地址大话设计模式

在下边方法中可以看到该模式的中文解释以及对应的代码实现。

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//    [self factoryPattern];//工厂模式
//    [self strategyPattern];//策略模式 + 工厂模式
//    [self DecorativePattern];//装饰模式
//    [self proxyPattern];//代理模式
//    [self factoryMethodPattern];//工厂方法模式
//    [self prototypePattern];//原型模式
//    [self templateMethodPattern];//模板方法模式
//    [self appearancePattern];//外观模式
//    [self builderPattern];//建造者模式
//    [self oberverPattern];//观察者模式
//    [self abstraceFactoryPattern];//抽象工厂模式
//    [self statePattern];//状态模式
//    [self adapterPattern];//适配器模式
//    [self mementoPattern];//备忘录模式
//    [self combinatorialPattern];//组合模式
//    [self iteratorPattern];//迭代器模式
//    [self sigletonPattern];//单例模式
//    [self bridgePattern];//桥接模式
//    [self commandPattern];//命令模式
//    [self chainOfResponsibilityPattern];//职责链模式
//    [self mediatorPattern];//中介者模式
//    [self flyweightPattern];//享元模式
//    [self interpreterPattern];//解释器模式
//    [self visitorPattern];//访问者模式
}

期待:

有什么问题请Issues我,或者到掘金去给我评论,一定及时回复。

About

根据《大话涉及模式》敲的代码,OC版。


Languages

Language:Objective-C 100.0%