(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
CustomGroupHeader *header = [tableView dequeueReusableHeaderFooterViewWithIdentifier:@"Header"];
GroupModel *gmodel = self.array[section];
[header updateHeaderData:gmodel];
[header setOpenHandle:^(BOOL isopen) {
gmodel.isOpen = isopen;
[tableView reloadData];
//NSLog(@"caocaocaocao%d",isopen);
}];
return header;
}
运行时,一点击按钮就crash,
经过调试发现,去掉[tableView reloadData]这一句程序不会崩溃,可是我就是想在点击按钮之后回调回来,刷新界面。求大神帮忙解答
http://blog.csdn.net/worldzhy/article/details/41849667
你要达到什么效果?崩溃信息是什么?
崩溃日志应该有,发出来看一下