I am creating a simple sign up/login screen. I am using static cells as follows:
The cells are static. I want that when I click the sign up button I add 2 more cells to the tableview. Is that possible considering that I am using static cells and not dynamic?
UPDATE:
I am trying to set the height to 0.0f inside the heightForRowAtIndexPath but it is blowing up.
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; // this line
if(cell.tag == 2)
return 0.0f;
return cell.frame.size.height;
}