0

我是 xcode 的新手。我需要知道我们如何在 xcode 4.6中使用 xml 文件作为数据源,例如我有一个这样的 xml 文件

<Catalog>
    <Title>title1</Title>
    <Description>desc2</Description>
</Catalog>

我有 2 个标签,我需要使用 xml 文件将它们的文本设置为 title1 和 desc2如何在 xcode 4.6 中实现这一点。请帮忙

4

1 回答 1

1

You can use NSXMLParser to convert the xml data into NSDictionary and use that dictionary data for showing in required labels.

于 2013-03-14T04:47:14.947 回答