为什么会这样啊,求大神解答一下。那条分割线没有被调整,点击全文之后,收起的按钮点不到


- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { ManagerCell *cell = (ManagerCell *)[tableView dequeueReusableCellWithIdentifier:@"ManagerCell"];//你的cell cell.topicLb.text = [[self.dataArr objectAtIndex:indexPath.row] content];//拿到数据源里面内容 [cell.topicLb sizeToFit]; CGSize size = [cell.contentView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize];//计算cell高度 return size.height>32?(size.height +1 +1):32;//32为,cell内容空得时候,固定的高度。 }
你的线是自己写的,还是系统的?
或许可能和这个有关系?
把那个灰线放在cell的最顶端就行了
自定义cell的时候没写super layout
点击全文后。 应该要重新reloadrow。然后重算height吧