I've been having trouble building a UITableView
around an HTML table that loads in a UIWebView
, currently I have the web view visible to make sure the search query is working properly, what I want to do, is load the results table into a UITableView
, or the items that are in the results, I don't want the whole web page, I know the entire table is defined by a class named results
and that the individual items are defined by a class named item
another named price
and a third named change
, I'm developing for the iPhone using Xcode 4.2
<table class="results">
<thead>
<tr>
<th class ="item">item</th>
<th class ="members">members</th>
<th class ="price">price</th>
<th class ="change">change</th>
</tr>
</thread>
<tbody>
<tr data-item-id="440">
<td class="item">
<img src="item-img" alt="item-name">
<a href="view-item-link">item-name</a>
</td>
<td>
<img src="member-img" alt="Free item" title="Free item">
</td>
<td class="price">185</td>
<td class="positive">+9</td>
</tr>
Thats how it's displayed, I would actually need the view item link, the item name, the price, and the positive. The positive class changes though, it can be positive, negative, or neutral.