如何向uitableview显示XML值? [英] How to show XML values to uitableview?

查看:91
本文介绍了如何向uitableview显示XML值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想如何在swift中向UItableview显示xml值。



我尝试了什么:



我想如何在swift中向UItableview显示xml值。但我不知道如何将值传递给UItableview单元格

I want how to show the xml values to UItableview in swift.

What I have tried:

I want how to show the xml values to UItableview in swift. But I dont know how to pass the value to UItableview cell

推荐答案

GitHub - nicklockwood / XMLDictionary:在iOS和Mac OS上解析和生成XML的简单方法。将XML文件转换为NSDictionary,然后可以使用标准Cocoa keyPath机制轻松遍历该文件。也可以将任何字典的内容输出为XML。 [ ^ ]



试试这个会解决你的问题。此XML字典用于创建和解析xml数据。如果您没有找到解决方案,请告诉我。
GitHub - nicklockwood/XMLDictionary: A simple way to parse and generate XML on iOS and Mac OS. Converts an XML file to an NSDictionary which can then be easily traversed using the standard Cocoa keyPath mechanism. Can also output the contents of any dictionary as XML.[^]

Try this it will fix ur problem. this XML dictionary is used to create and parse xml data. Let me know If you didn't find the solution.


这篇关于如何向uitableview显示XML值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆