/ExpandCell

单元格的伸展与收缩

Primary LanguageObjective-C

ExpandCell

单元格的伸展与收缩 示例

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    ProblemTitleModel * tM = self.exp_Arr[section];
    if (tM.isOpened) {
        return 1;
    }else{
        return 0;
    }
    
}

- (void)clickHeadView:(NSInteger)section
{
 //刷新整组数据...
 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:section];

 [self.exp_tab reloadSections:indexSet withRowAnimation:UITableViewRowAnimationFade];
}