-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableview dequeueReusableCellWithIdentifier:CellIdentifier];
if(cell == nil)
{
NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibname:@"PhotoTableCell" owner:self options:nil];
cell = [topLevelObjects objectAtIndex:0];
}
NSDIctionary *photoData = [[self appDelegate].photoArray objectAtIndex:indexPath.row];
UILabel *label;
lable = (UILabel *)[cell viewWithTag:2];
lable.text = [photoData valueForKey:@"Country"];
label = (UILabel *)[cell viewWithTag:3];
lable.text = [photoData valueForKey:@"Region"];
UIImageView *imageView= (UIImageView *)[cell viewWithTag:1];
imageView.image = [photoData valueForKey:@"Thumbnail"];
return cell;
}