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

      1. <small id='HOU8M'></small><noframes id='HOU8M'>

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

        什么是“代表"?在 Objective C 的 iPhone 开发中?

        时间:2023-07-28
          <tbody id='HBKP0'></tbody>

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

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

            • <legend id='HBKP0'><style id='HBKP0'><dir id='HBKP0'><q id='HBKP0'></q></dir></style></legend>
                <bdo id='HBKP0'></bdo><ul id='HBKP0'></ul>
                • 本文介绍了什么是“代表"?在 Objective C 的 iPhone 开发中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Objective C 的 iPhone 开发中的委托"是什么?

                  What is a "delegate" in Objective C's iPhone development?

                  推荐答案

                  查看此讨论

                  委托允许一个对象在事件发生时向另一个对象发送消息.例如,如果您使用 NSURLConnection 类从网站异步下载数据.NSURLConnection 有三个常见的委托:

                  A delegate allows one object to send messages to another object when an event happens. For example, if you're downloading data from a web site asynchronously using the NSURLConnection class. NSURLConnection has three common delegates:

                   - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
                   - (void)connectionDidFinishLoading:(NSURLConnection *)connection
                   - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
                  

                  当 NSURLConnection 遇到失败、成功完成或收到来自网站的响应时,将分别调用这些委托中的一个或多个.

                  One or more of these delegates will get called when NSURLConnection encounters a failure, finishes successfully, or received a response from the web site, respectively.

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

                  上一篇:如何在 iPhone 上的 UIViewController 之间共享对象? 下一篇:self.delegate = 自我;这样做有什么问题?

                  相关文章

                      <bdo id='JsEaQ'></bdo><ul id='JsEaQ'></ul>
                  1. <legend id='JsEaQ'><style id='JsEaQ'><dir id='JsEaQ'><q id='JsEaQ'></q></dir></style></legend>

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

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

                      <tfoot id='JsEaQ'></tfoot>