-1

I have a UItableView with cells. Each cell has a button. How to do that when I click on the button cell's height increased?

Cœur
  • 37,241
  • 25
  • 195
  • 267

1 Answers1

1

Do something like this:

#pragma mark - Table View
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    Item *object = listData[indexPath.row];  


    if (object.buttonClicked) {
        return 300;
    }else{
        return 100;
    }

}
Sergey Neskoromny
  • 1,188
  • 8
  • 15