Prototype(Chapter 3 of Pro Objective-C Design Patterns for iOS)
The Prototype pattern is one of the simplest design patterns. A client knows an abstract Prototype class. At runtime any object that is a subclass of the abstract Prototype can be cloned at the client’s will. So the client can make multiple instances of the same type without creating them manually.
浙公网安备 33010602011771号