
下面这个链接解决了我一直对delegating和delegated的疑问,不知道谁是谁。
Delegation and the Cocoa FrameworksThe delegating object is typically a framework object,and the delegate is typically a custom controller object. In a managed memory environment,the delegating object maintains a weak reference to its delegate; in a garbage-collected environment,the receiver maintains a strong reference to its delegate. Examples of delegation abound in the Foundation,UIKit,AppKit,and other Cocoa and Cocoa touch frameworks.
https://developer.apple.com/library/mac/documentation/General/Conceptual/DevPedia-CocoaCore/Delegation.html
总结以上是内存溢出为你收集整理的delegate全部内容,希望文章能够帮你解决delegate所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)