如何在swift中将此HTML数据解析为tableview

时间:2016-06-20 15:16:57

标签: html ios json swift parsing

我真的很难解析以下HTML代码。我希望能够从网站中提取以下标签

<div class = "subject">RED SOCK DAY 8th July</div>
<div class = "teacher">ELS</div>
<div class = "level">GENERAL</div>
<div class = "subject">This year,....</div>

<div class = "subject">STS Student...</div>
<div class = "teacher">RTN</div>
<div class = "level">GENERAL</div>
<div class = "subject">If you are....</div>

进入某种数组(NSDictionaries?)并在swift中显示到tableview中。我知道如何创建一个tableview并显示数组的静态数据等,但很难从URL获取实时数据。请考虑如何或理想的链接来帮助我。

0 个答案:

没有答案