其實原理就是好友列表合上的時候,將這組的cell數設置為0,展開的時候,在變成原來的,就是這么簡單
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
? ? YJFriendGroup *group= self.friendArray[section];
? ? return (group.isOpen?group.friends.count:0);
}
新聞熱點
疑難解答