还是直接贴代码了。第一步:@interfaceTodoViewController(){//声明一个数组存放cell的信息NSMutableArray*grouparr;}@end第二步://将cell的状态存入数组中-(void)initDataSource{NSMutableDictionary*nameAndStateDic1=[NSMutableDictionarydictionaryWithObjectsAndKeys:@"TodoCell",@"cell",@"NO"...
查看全文