开发者

How to populate tableview in xcode from soap results

开发者 https://www.devze.com 2023-04-04 12:15 出处:网络
I have a soap result with this form: <root> <a> <b> string </b> <c> int</c>

I have a soap result with this form:

<root>
  <a> 
    <b> string </b>
    <c> int</c>
    <d> string </d>
  </a>
  <a> 
    <b> string </b>
    <c> int</c>
    <d> stri开发者_JAVA百科ng </d>
  </a> /......

So can anyone tell me how to populate tableview?


Parse the value in tags "b","c","d" store in a dictionary then add parsed content between "a" tag in an array. Display that in TableView. If you are not familiar with XML parsing in objective -C search for NSXMLParser or XML parsing objective-C iphone in google.com

0

精彩评论

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