其实原理就是好友列表合上的时候,将这组的cell数设置为0,展开的时候,在变成原来的,就是这么简单

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{

    YJFriendGroup *group= self.friendArray[section];

    return (group.isOpen?group.friends.count:0);

}

相关文章:

  • 2021-11-16
  • 2021-11-11
  • 2021-11-28
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
猜你喜欢
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
相关资源
相似解决方案