Messing around with a table view and custom cells

It is a really great feature in iOS 5 being able to use a prototype cell.  I had decided to design one for an app I am working on and my code to set each row became this simple, and I could draw the cell write in the storyboard edit/designer!

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"StationCell"];

    UILabel *stationNameLabel = (UILabel *)[cell viewWithTag:100];
    UILabel *addressLabel = (UILabel *)[cell viewWithTag:101];

    stationNameLabel.text = [stations objectAtIndex:indexPath.row];
    addressLabel.text = [stationAddress objectAtIndex:indexPath.row];

    return cell;
}

The new cell call took care of queueing it, and I referenced all my custom fields within this cell using tag numbers that can be assigned in the storyboard editor.

I did find that going into a detail view caused it to not update upon navigating back and traced it to adding the implementation of viewWillAppear.

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [[self tableView] reloadData];
}

Happy Coding!
Tony