简体   繁体   English

从解析的XML将数据加载到Table视图

[英]Load data to the Table view from Parsed XML

Previously I had a doubt regarding the Parsing XML. 以前,我对解析XML有疑问。 Thanks for all for giving me help to clear that. 感谢所有为我提供帮助的人。

Now I need to load the data which i parsed from the XML in to a table view. 现在,我需要将从XML解析的数据加载到表视图中。 can any one help me in that. 谁能在这方面帮助我。

[What I need is to load the courses which a student enrolls. [我需要加载学生注册的课程。 The xml file is created based on the login query.] xml文件是基于登录查询创建的。]

To display data in UITableView you must set its delegate and datasource properties to an object that implements UITableViewDelegate and UITableViewDataSource protocols. 要在UITableView中显示数据,必须将其委托和数据源属性设置为实现UITableViewDelegate和UITableViewDataSource协议的对象。 Look reference docs for details. 有关详细信息,请参见参考文档。

There's also TableViewSuite sample on apple site. 苹果网站上还有TableViewSuite示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM