首页 > IOS 刷新tableView的section时候出了问题

IOS 刷新tableView的section时候出了问题

在做一个类似QQ好友的tableView,我给表头的view加了个点击事件,用一个BOOL属性判断是否展开二级列表 下面是代码

import "ProvinceAndCityController.h"

@interface ProvinceAndCityController ()
//省份数组
@property(nonatomic,strong)NSMutableArray * provinceArray;
//省份对应的城市列表
@property(nonatomic,strong)NSMutableArray * cityArray;
//是否展开二级列表
@property(nonatomic,assign)BOOL isOpen;
@end

@implementation ProvinceAndCityController


我也想知道答案 ,您是怎么解决的

改过来了,我可是不太明白为什么会崩溃


上面的问题已经解决,[self.tableView reloadSections:[[NSIndexSet alloc] initWithIndex:self.count] withRowAnimation:UITableViewRowAnimationFade];


请问您是怎么解决的,我也碰到了同样地问题?

【热门文章】
【热门文章】