创建 plist 文件
我是 iOS 开发新手,需要您的帮助。我需要创建一个 xml 的 plist 文件。该 xml 就像
<?xml version="1.0" encoding= "UTF-8" ?>
<nutrition>
<nutritiontype item="Calories">
<milk>113</milk>
<fat>98</fat>
<fatfree>68</fatfree>
<pacific>60</pacific>
</nutritiontype>
<nutritiontype item="Total calories">
<milk>6g</milk>
<fat>4g</fat>
<fatfree>0g</fatfree>
<pacific>2g</pacific>
</nutritiontype>
<nutritiontype item="Saturated Fat">
<milk>4g</milk>
<fat>2g</fat>
<fatfree>0g</fatfree>
<pacific>0g</pacific>
</nutritiontype>
<nutritiontype item="Cholesterol">
<milk>26mg</milk>
<fat>15mg</fat>
<fatfree>0mg</fatfree>
<pacific>0mg</pacific>
</nutritiontype>
<nutritiontype item="Sodium">
<milk>94mg</milk>
<fat>105mg</fat>
<fatfree>105mg</fatfree>
<pacific>173mg</pacific>
</nutritiontype>
<nutritiontype item="Carbohydrates">
<milk>8g</milk>
<fat>10g</fat>
<fatfree>10g</fatfree>
<pacific>5g</pacific>
</nutritiontype>
<nutritiontype item="Dietary Fiber">
<milk>0g</milk>
<fat>0g</fat>
<fatfree>0g</fatfree>
<pacific>0g</pacific>
</nutritiontype>
<nutritiontype item="Sugars">
<milk>8g</milk>
<fat>10g</fat>
<fatfree>10g</fatfree>
<pacific>5g</pacific>
</nutritiontype>
<nutritiontype item="Protein">
<milk>6g</milk>
<fat>8g</fat>
<fatfree>8g</fatfree>
<pacific>4g</pacific>
</nutritiontype>
<nutritiontype item="Vitamin A">
<milk>5%</milk>
<fat>8%</fat>
<fatfree>8%</fatfree>
<pacific>0%</pacific>
</nutritiontype>
<nutritiontype item="Vitamin C">
<milk>2%</milk>
<fat>2%</fat>
<fatfree>2%</fatfree>
<pacific>0%</pacific>
</nutritiontype>
</nutrition>
请给我一些参考,以便我可以继续。
谢谢..
I am new to iOS devlopement and i need your help.I need to create a plist file of a xml.The xml is like
<?xml version="1.0" encoding= "UTF-8" ?>
<nutrition>
<nutritiontype item="Calories">
<milk>113</milk>
<fat>98</fat>
<fatfree>68</fatfree>
<pacific>60</pacific>
</nutritiontype>
<nutritiontype item="Total calories">
<milk>6g</milk>
<fat>4g</fat>
<fatfree>0g</fatfree>
<pacific>2g</pacific>
</nutritiontype>
<nutritiontype item="Saturated Fat">
<milk>4g</milk>
<fat>2g</fat>
<fatfree>0g</fatfree>
<pacific>0g</pacific>
</nutritiontype>
<nutritiontype item="Cholesterol">
<milk>26mg</milk>
<fat>15mg</fat>
<fatfree>0mg</fatfree>
<pacific>0mg</pacific>
</nutritiontype>
<nutritiontype item="Sodium">
<milk>94mg</milk>
<fat>105mg</fat>
<fatfree>105mg</fatfree>
<pacific>173mg</pacific>
</nutritiontype>
<nutritiontype item="Carbohydrates">
<milk>8g</milk>
<fat>10g</fat>
<fatfree>10g</fatfree>
<pacific>5g</pacific>
</nutritiontype>
<nutritiontype item="Dietary Fiber">
<milk>0g</milk>
<fat>0g</fat>
<fatfree>0g</fatfree>
<pacific>0g</pacific>
</nutritiontype>
<nutritiontype item="Sugars">
<milk>8g</milk>
<fat>10g</fat>
<fatfree>10g</fatfree>
<pacific>5g</pacific>
</nutritiontype>
<nutritiontype item="Protein">
<milk>6g</milk>
<fat>8g</fat>
<fatfree>8g</fatfree>
<pacific>4g</pacific>
</nutritiontype>
<nutritiontype item="Vitamin A">
<milk>5%</milk>
<fat>8%</fat>
<fatfree>8%</fatfree>
<pacific>0%</pacific>
</nutritiontype>
<nutritiontype item="Vitamin C">
<milk>2%</milk>
<fat>2%</fat>
<fatfree>2%</fatfree>
<pacific>0%</pacific>
</nutritiontype>
</nutrition>
Please give me some reference so that i can proceed.
Thanks..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果它是静态的,我只需在 Xcode 中手动重新创建它。
If it's static, I'd just recreate it by hand in Xcode.