Ray's playground

 

2012年5月14日

Strategy(Chapter 19 of Pro Objective-C Design Patterns for iOS)

摘要: A class uses multiple conditional statements in its operations to definemany behaviors. You can move related conditional branches into theirown strategy class. You need different variants of an algorithm. You need to avoid exposing complex and algorithm-specific datastructures to clients. 阅读全文

posted @ 2012-05-14 14:39 Ray Z 阅读(273) 评论(0) 推荐(0) 编辑

导航