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

        <bdo id='3fCv9'></bdo><ul id='3fCv9'></ul>

        <small id='3fCv9'></small><noframes id='3fCv9'>

      1. <tfoot id='3fCv9'></tfoot><legend id='3fCv9'><style id='3fCv9'><dir id='3fCv9'><q id='3fCv9'></q></dir></style></legend>

      2. NSURLConnectionDelegate 连接:didReceiveData 不起作用

        NSURLConnectionDelegate connection:didReceiveData not working(NSURLConnectionDelegate 连接:didReceiveData 不起作用)
            <bdo id='ko5Tv'></bdo><ul id='ko5Tv'></ul>
          • <legend id='ko5Tv'><style id='ko5Tv'><dir id='ko5Tv'><q id='ko5Tv'></q></dir></style></legend>
          • <tfoot id='ko5Tv'></tfoot>

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

            <i id='ko5Tv'><tr id='ko5Tv'><dt id='ko5Tv'><q id='ko5Tv'><span id='ko5Tv'><b id='ko5Tv'><form id='ko5Tv'><ins id='ko5Tv'></ins><ul id='ko5Tv'></ul><sub id='ko5Tv'></sub></form><legend id='ko5Tv'></legend><bdo id='ko5Tv'><pre id='ko5Tv'><center id='ko5Tv'></center></pre></bdo></b><th id='ko5Tv'></th></span></q></dt></tr></i><div id='ko5Tv'><tfoot id='ko5Tv'></tfoot><dl id='ko5Tv'><fieldset id='ko5Tv'></fieldset></dl></div>
                    <tbody id='ko5Tv'></tbody>
                • 本文介绍了NSURLConnectionDelegate 连接:didReceiveData 不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要一些关于 NSURLConnectionDelegate 方法的帮助.

                  I need some help regarding the NSURLConnectionDelegate method.

                  - (void)startDownload {
                  NSString *URLString = [NSString stringWithFormat:appRecord.imageURLString]; 
                  NSURL *url = [NSURL URLWithString:URLString];   
                  NSURLRequest *request = [NSURLRequest requestWithURL:url];
                  
                  imageConnection = [[NSURLConnection alloc] initWithRequest:request delegate:self];  
                  if(imageConnection) {
                      activeDownload = [NSMutableData data];
                  }
                  }
                  

                  我正在使用这种方法来发起 NSURLConnection,但是

                  I am using this method to initiate the NSURLConnection, but the

                  - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
                  

                  没有打电话..需要帮助

                  is not calling.. Need Help

                  提前致谢,世斌

                  推荐答案

                  没有唯一的答案,但是:1) 放入一些 NSLogs 以显示 URL,然后验证它是否正确生成并返回数据

                  No single answer but: 1) Put some NSLogs in to display the URL and then validate that it is generated correctly and does return data

                  2) 检查您是否已正确声明您符合 .h 中的 NSURLConnectionDelegate 协议

                  2) Check that you have properly declared that you conform to the NSURLConnectionDelegate protocol in the .h

                  3) 你是在处理或弄乱 runloops 吗?" 发送给委托的消息将在调用此方法的线程上发送.默认情况下,要使连接正常工作,调用线程的运行循环必须在默认运行循环模式下运行."

                  3) Are you threading or messing with the runloops ? " Messages to the delegate will be sent on the thread that calls this method. By default, for the connection to work correctly the calling thread’s run loop must be operating in the default run loop mode."

                  这篇关于NSURLConnectionDelegate 连接:didReceiveData 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                  Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                  Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))
                  Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)
                  Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)
                  [ios.cocos2d+box2d]how to disable auto-rotation?([ios.cocos2d+box2d]如何禁用自动旋转?)

                  <small id='1wU8r'></small><noframes id='1wU8r'>

                    <bdo id='1wU8r'></bdo><ul id='1wU8r'></ul>

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

                      <legend id='1wU8r'><style id='1wU8r'><dir id='1wU8r'><q id='1wU8r'></q></dir></style></legend>
                        <tfoot id='1wU8r'></tfoot>