When Would You Use the Composite Pattern?
You would naturally think about using the pattern when You want to have abstract tree representation of objects (part-whole hierarchies).
You want clients to treat all objects in the composite structure and individual objects uniformly.
转载于:https://www.cnblogs.com/zhtf2014/archive/2012/04/25/2469760.html
相关资源:Pro-Objective-C-Design-Patterns-for-iOS