- (NSInteger)tableView:(UITableView *)tableView 
   numberOfRowsInSection:(NSInteger)section
{
   return ARRAY_SIZE(properties);
}

- (UITableViewCell *)tableView:(UITableView *)tableView
   cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
   static NSString *CellIdentifier = @"Cell";

   UITableView *cell = 
      [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
   if (cell == nil) {
      cell = [[[UITableViewCell alloc]
            initWithStyle:UITableViewCellStyleSubtitle  
            reuseIdentifier:CellIdentifier] autorelease];
   }

   cell.textLabel.text = properties[indexPath.row].address;   
   cell.detailTextLabel.text =                    
      [NSString stringWithFormat:@"Nieruchomoci za %0.2f z tygodniowo", 
         properties[indexPath.row].weeklyRentalPrice]; 

   return cell;
}
