title: favorites button in the tableviewcells
body: <p>I implemented the following method in my tableviewcontroller for showing favorites with empty star and filled star:</p>
  
  <pre><code>-(IBAction) tapped:(UIButton *)sender
  {
      if([sender isSelected])
      {
          //...
          [sender setImage:[UIImage imageNamed:@"fav-empty.png"] forState:UIControlStateNormal];
          [sender setSelected:NO];
      }
      else 
      {
          //... 
          [sender setImage:[UIImage imageNamed:@"fav-filled.png"] forState:UIControlStateNormal];
          [sender setSelected:YES];
          NSLog(@"%@",sender);
      }
  
  }
  </code></pre>
  
  <p>and I tried to use in this part:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"Cell";
  
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      if (cell == nil) {
          cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
  
          UILabel *recept_neve=[[UILabel alloc] initWithFrame:CGRectMake(10, 10, 100, 40)];
          [recept_neve setTag:1];
          UIButton *kedvenc_btn=[UIButton buttonWithType:UIButtonTypeCustom];
          [kedvenc_btn setImage:[UIImage imageNamed:@"fav-empty.png"] forState:UIControlStateNormal];//default appereance on the startup
          kedvenc_btn.frame=CGRectMake(200, 20, 50, 50);
          [kedvenc_btn setTag:2];
          [kedvenc_btn addTarget:self action:@selector(tapped:) forControlEvents:UIControlEventTouchUpInside];
          [[cell contentView] addSubview:recept_neve];
          [[cell contentView] addSubview:kedvenc_btn];
  
          //[(UILabel*) [[cell contentView] viewWithTag:1] setText:[receptek objectAtIndex:indexPath.section*blokk+1]];
          //[(UIButton *) [cell contentView] viewWithTag:2];
  
  
  
      }
      // Configure the cell...
      cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;
      [(UILabel*) [[cell contentView] viewWithTag:1] setText:[receptek objectAtIndex:indexPath.section*blokk+1]];
  
      return cell;
  
  }
  </code></pre>
  
  <p>My problem is that every fifth button in the cells are working as would be the same.
  If I tap on the button(empty star) in the first cell, the result will be the following: the first button becoming filled-star, so far so good(the expected behaviour), but in the same time the sixth star becoming filled too. Or if I tap on the second one, the seventh star getting filled and vica versa...</p>
  
  <p>I logged the buttons where I tapping , and I realised, that the memory adresses are equals in the case of buttons above mentioned.
  Sorry about my english, and thanks a lot for every help in advance!</p>