• <legend id='7bmM0'><style id='7bmM0'><dir id='7bmM0'><q id='7bmM0'></q></dir></style></legend>

  • <i id='7bmM0'><tr id='7bmM0'><dt id='7bmM0'><q id='7bmM0'><span id='7bmM0'><b id='7bmM0'><form id='7bmM0'><ins id='7bmM0'></ins><ul id='7bmM0'></ul><sub id='7bmM0'></sub></form><legend id='7bmM0'></legend><bdo id='7bmM0'><pre id='7bmM0'><center id='7bmM0'></center></pre></bdo></b><th id='7bmM0'></th></span></q></dt></tr></i><div id='7bmM0'><tfoot id='7bmM0'></tfoot><dl id='7bmM0'><fieldset id='7bmM0'></fieldset></dl></div>

    <tfoot id='7bmM0'></tfoot>
      <bdo id='7bmM0'></bdo><ul id='7bmM0'></ul>
    1. <small id='7bmM0'></small><noframes id='7bmM0'>

        iPhone 中的代理是什么?

        what is Delegate in iPhone?(iPhone 中的代理是什么?)

            <legend id='AO6Ui'><style id='AO6Ui'><dir id='AO6Ui'><q id='AO6Ui'></q></dir></style></legend>
              <tfoot id='AO6Ui'></tfoot>

              • <bdo id='AO6Ui'></bdo><ul id='AO6Ui'></ul>

                  <small id='AO6Ui'></small><noframes id='AO6Ui'>

                    <tbody id='AO6Ui'></tbody>
                  <i id='AO6Ui'><tr id='AO6Ui'><dt id='AO6Ui'><q id='AO6Ui'><span id='AO6Ui'><b id='AO6Ui'><form id='AO6Ui'><ins id='AO6Ui'></ins><ul id='AO6Ui'></ul><sub id='AO6Ui'></sub></form><legend id='AO6Ui'></legend><bdo id='AO6Ui'><pre id='AO6Ui'><center id='AO6Ui'></center></pre></bdo></b><th id='AO6Ui'></th></span></q></dt></tr></i><div id='AO6Ui'><tfoot id='AO6Ui'></tfoot><dl id='AO6Ui'><fieldset id='AO6Ui'></fieldset></dl></div>

                  本文介绍了iPhone 中的代理是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  delegate在iphone中的确切含义是什么?它在UIViewController中是如何实现的?

                  what is the exact meaning of delegate in iphone?how it is implemented in UIViewController?

                  推荐答案

                  委托是一个对象,它通常对另一个对象中的某些事件做出反应和/或可以影响另一个对象的行为方式.为了更好地完成任务,这些对象协同工作.通常,委托对象将由许多其他需要执行更具体任务的对象共享.委托本身将更加抽象,并且对于不同的任务应该是非常可重用的.包含委托的对象通常会在触发事件发生时向委托发送消息,使委托有机会执行其指定的任务.

                  A delegate is an object that usually reacts to some event in another object and/or can affect how another object behaves. The objects work together for the greater good of completing a task. Typically a delegate object will be shared by many other objects that have a more specific task to carry out. The delegate itself will be more abstract and should be very reusable for different tasks. The object which contains the delegate typically sends the delegate a message when a triggered event occurs, giving the delegate an opportunity to carry out its specified task.

                  还有更多文档这里 您应该阅读以了解 Cocoa 和 Cocoa touch 中的委托模式,特别是如何在 UIWindow 和 UIView 之间使用委托.它是 iPhone 架构中不可或缺的设计模式,如果你想设计一个干净的应用程序,你应该掌握它.

                  There's more documentation here that you should read to understand the delegate pattern in Cocoa and Cocoa touch, particularly with how delegation is used between UIWindow and UIView. It is an integral design pattern in iPhone architecture and one that should be mastered if you wish to design a clean application.

                  这篇关于iPhone 中的代理是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to pass a #39;tap#39; to UIButton that is underneath UIView with UISwipeGestureRecognizer?(如何使用 UISwipeGestureRecognizer 将“点击传递给 UIView 下方的 UIButton?)
                  UIButton background color becomes white when running on iOS6(在iOS6上运行时UIButton背景颜色变为白色)
                  UIButton - text truncated(UIButton - 文本被截断)
                  How can i increase the button width dynamically depends on the text size in iphone?(如何根据 iphone 中的文本大小动态增加按钮宽度?)
                  Add a string property to a UIButton in Swift(将字符串属性添加到 Swift 中的 UIButton)
                  What#39;s the difference between UIControlStateHighlighted and UIControlStateSelected?(UIControlStateHighlighted 和 UIControlStateSelected 有什么区别?)
                  • <bdo id='A0Anq'></bdo><ul id='A0Anq'></ul>
                  • <i id='A0Anq'><tr id='A0Anq'><dt id='A0Anq'><q id='A0Anq'><span id='A0Anq'><b id='A0Anq'><form id='A0Anq'><ins id='A0Anq'></ins><ul id='A0Anq'></ul><sub id='A0Anq'></sub></form><legend id='A0Anq'></legend><bdo id='A0Anq'><pre id='A0Anq'><center id='A0Anq'></center></pre></bdo></b><th id='A0Anq'></th></span></q></dt></tr></i><div id='A0Anq'><tfoot id='A0Anq'></tfoot><dl id='A0Anq'><fieldset id='A0Anq'></fieldset></dl></div>
                    <tfoot id='A0Anq'></tfoot>

                        <legend id='A0Anq'><style id='A0Anq'><dir id='A0Anq'><q id='A0Anq'></q></dir></style></legend>

                        <small id='A0Anq'></small><noframes id='A0Anq'>

                          <tbody id='A0Anq'></tbody>