-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
  • 34,719
  • 24
  • 185
  • 251

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,189
  • 7
  • 15