导航

2014年1月9日

摘要: 委托(delegate)也叫代理是iOS开发中常用的设计模式。我们借助于protocol(参考博文:objective-c协议(protocol))可以很方便的实现这种设计模式。什么是代理?苹果的官方文档给了很清晰的解释:Delegation is a simple and powerful pattern in which one object in a program acts on behalf of, or in coordination with, another object. The delegating object keeps a reference to the other 阅读全文

posted @ 2014-01-09 11:28 iOS攻城师 阅读(697) 评论(0) 推荐(0) 编辑