delegate

delegate,第1张

概述下面这个链接解决了我一直对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 m

下面这个链接解决了我一直对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所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1050701.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-25
下一篇2022-05-25

发表评论

登录后才能评论

评论列表(0条)

    保存