title: Populating a UITableView from arrays
body: <p>I need help with the following code i am using hpple to parse html.
  and i need help utilizing the data.</p>
  
  <pre><code>-(void) whatever{
  NSData *htmlData = [[NSString stringWithContentsOfURL:[NSURL URLWithString: @"http://www.objectgraph.com/contact.html"]] dataUsingEncoding:NSUTF8StringEncoding];
  TFHpple *xpathParser = [[TFHpple alloc] initWithHTMLData:htmlData];
  NSArray *titles  = [xpathParser search:@"//h3"]; // get the page title - this is xpath     notation
  TFHppleElement *title = [titles objectAtIndex:0];
  NSString *myTitles = [title content];
  
  NSArray *articles  = [xpathParser search:@"//h4"]; // get the page article - this is xpath     notation
  TFHppleElement *article = [articles objectAtIndex:0];
  NSString *myArtical = [article content];
  </code></pre>
  
  <p>i want to create and populate a table from the array "titles"
  Then be able to click the item on the table to load a subview that should show the corresponding artical at the same index?</p>
  
  <p>I'd like to do this programatically or using IB</p>
  
  <p>can anyone suggest some sample code or a tutorial?</p>
  
  <p>Thanks.</p>