摘要:
原文地址: http://www.cnblogs.com/dxb123456/p/5479198.html 一 iOS中都有什么设计模式? 1.代理模式 2.观察者模式 3.MVC模式 4.单例模式 5.策略模式 6.工厂模式 二 各个设计模式的作用? (一)代理模式 在观察者模式中,一个对象任何状 阅读全文
摘要:
在枚举中我们经常见到, 如下写法 typedef enum _LHDirection { LHDirectionNone = 0, LHDirectionTop = 1 << 0, LHDirectionLeft = 1 << 1, LHDirectionRight = 1 << 2, LHDire 阅读全文
摘要:
官方推荐的代码习惯, 有必要看看 阅读全文