I have a big problem with my UITableViewCell. I use storyboard and I have a custom cell into my UITableVIew. I add a Identifier to this, and my class code is:
static NSString *celldentifier = @"myCellId";
CustomCell *myCell = [tableView dequeueReusableCellWithIdentifier:celldentifier];
if (celldentifier == nil) {
celldentifier = [[CustomCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:celldentifier];
}
...
Edit:
...
myCell.myButton.hidden = YES;
...
When I load other information in cell and I need hide the button, I do a reload table:
[self.myTable reloadData];
And in my viewController I reload this tableView showing or hidding some components in my cell like a UIButton. But when I do scroll, this buttons added disappear..
What is wrong in my code? How could I solve this problem?