Memento(Chapter 23 of Pro Objective-C Design Patterns for iOS)
摘要:
You’d think about using the pattern when all of the following applies: You need to save the object’s state as a snapshot or a portion of it,which can be restored later. You need to hide the interface with which obtaining the state wouldexpose the implantation details. 阅读全文
posted @ 2012-05-18 13:44 Ray Z 阅读(291) 评论(0) 推荐(0) 编辑