вам нужно создать свою собственную ячейку на основе нажатия кнопки, для которой вам нужно запомнить, какая кнопка нажата.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
if([aVarible isEqualToString:@"firstButton"])
{
//create your first custom cell
}
else if ([aVarible isEqualToString:@"secondButton"])
{
//create your second custom cell
}
}
в вашем событии нажатия кнопки
- (IBAction) firstBtnClick
{
aVarible = @"firstButton"
[yourTable reloadData]
}
- (IBAction) secondBtnClick
{
aVarible = @"secondButton"
[yourTable reloadData]
}
надеюсь, что это дает идею.