iOS 設計模式之裝飾模式(Decorator)

給一我的穿上衣服,使用裝飾者模式git 給一我的穿上衣服,首先要定義一個 Person 類。 Person 有一個 name,還能夠展現本身穿了什麼。github //Person.h @interface Person : NSObject @property (nonatomic, strong) NSString *name; - (void)show; @end self.name 爲
相關文章
相關標籤/搜索