Using dispatch method upload the data based on button action in Iphone

折月煮酒 提交于 2019-12-11 04:08:17

问题


I am new one of using Grand central dispatch. I read the Apple documents about using GCD but still I have no idea about use this method. My thought is I have three type of upload buttons in my view and I clicked the button simultaneously I want to upload the data based on button action using NSURLCOnnection upload the content of data dispatch queue method.How can i do this. Pls help me


回答1:


Try reading Mike Ash's blog on grand central dispatch - it will give you a good idea of how to use its APIs in your own code. If his blog and Apple's docs are STILL not enough then I doubt that anyone on stackoverflow will be able to help you either since there's some conceptual hurdle that's not clear by your question.

The first three articles should help:

GCD Intro part 1 GCD Intro part 2 GCD Intro part 3



来源:https://stackoverflow.com/questions/12488855/using-dispatch-method-upload-the-data-based-on-button-action-in-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!