2012-08-04 47 views
5

任何机构都可以帮助我。通过Ipad中的XML解析生成动态控件

我想创建一个动态视图。我想在其中添加动态控件。这些控件来自xml。并且需要在单一视图中显示按钮的点击事件。

我的xml格式如下所示。

<?xml version="1.0"?><customer><cust type="101"><lable><1> customer name </1><2> customer phone </2><3> customer age </3><4> customer Birth </4></lable><value><1>textfield</1><2> textfield </2><3> textfield </3><4>Date</4></value></cust><cust type="102"><lable><1> customer qualification </1><2> customer Email</2></lable><value><1>textfield</1><2>Email</2></cust><cust type="103"><lable><1> customer name </1><2> customer phone </2><3> customer age </3><4> customer Birth </4></lable><value><1>textfield</1><2>textfield</2><3>textfield</3><4>Date</4></value></cust><cust type="104"><lable><1> customer qualification </1><2> customer Email</2><3> customer gender </3><4> customer Birth </4></lable><value><1>textfield</1><2>textfield</2><3>CheckBox</3><4>Date</4> 

感谢

回答

2

我不知道该怎么做,但我认为这可能会帮助你

check this

and read about views (apple docs)

+0

感谢您的反馈意见。但是这个演示对我没有用处。请给我其他解决方案。 我在重复我的问题: 我必须根据来自.net Web服务的指示,动态显示诸如复选框,选择列表,选择列表以及多选,文本视图,文本框等控件。 我需要解析XML,然后阅读它,然后动态显示。 有关这方面的任何帮助将非常可观.. 再次提前致谢。 :-) – 2012-08-06 09:37:30

+0

@Hiren如果上面的回答对你没有帮助,那么为什么接受这个答案?只是为了增加你的声望或其他什么? – 2012-11-02 11:22:51

+0

@IGP谢谢下一次我会关心它.. – 2012-11-06 13:05:33