开发者

Objective-c asynchronous xml parser question

开发者 https://www.devze.com 2023-02-14 17:30 出处:网络
Hey, I have an iphone program that has a parser that parses some XML from a website and produces results.

Hey, I have an iphone program that has a parser that parses some XML from a website and produces results.

It's not clear for me how to use the array of objects I create. I believe that the array is created correctly, but I don't know how to tell the mainview that the xml finished parsing and its time to get the res开发者_如何学Pythonult array and fill the view.

I did some test and i noticed that of course calling the parser and then getting the array results in having the array empty because the elements need still to be created.

Any suggestions?


The XML parser will typically expect you to supply a delegate, a target and selector, or a block. The documentation for the XML parser you are using should tell you what you need to know.


Well thanks to all of you, I solved it by putting the POST action code in the mainview :)

0

精彩评论

暂无评论...
验证码 换一张
取 消