首页 > 学院 > 开发设计 > 正文

iOS类似QQ好友展开和合并列表的实现代码

2019-11-14 18:10:22
字体:
来源:转载
供稿:网友

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

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

    YJFriendGroup *group= self.friendArray[section];

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

}


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表