We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
children添加完数据想将他默认展开。但是我reloadData再expandRowForItem。展开了 但是列表滚到第一条数据了。这是因为什么呢 NSMutableArray *children = [[NSMutableArray alloc]init]; for (NSDictionary *child in dic[@"data"]) { NSMutableDictionary *cataDic = [[NSMutableDictionary alloc]init]; cataDic[@"name"] = child[@"typeName"]; cataDic[@"code"] = child[@"catalogCode"]; cataDic[@"typeCode"] = child[@"typeCode"]; cataDic[@"isLeaf"] = child[@"isLeaf"]; RADataObject *childcataModel = [RADataObject dataObjectWithName:@"" children:nil]; childcataModel.type = 1; childcataModel.cataDic = cataDic; [children addObject:childcataModel]; }
cataModel.children = [[NSArray alloc]initWithArray:children]; [self.treeTableview reloadData]; [UIView animateWithDuration:0. animations:^{ [self expandRows:self.data]; } completion:^(BOOL finished) { }];
The text was updated successfully, but these errors were encountered:
No branches or pull requests
children添加完数据想将他默认展开。但是我reloadData再expandRowForItem。展开了 但是列表滚到第一条数据了。这是因为什么呢
NSMutableArray *children = [[NSMutableArray alloc]init];
for (NSDictionary *child in dic[@"data"]) {
NSMutableDictionary *cataDic = [[NSMutableDictionary alloc]init];
cataDic[@"name"] = child[@"typeName"];
cataDic[@"code"] = child[@"catalogCode"];
cataDic[@"typeCode"] = child[@"typeCode"];
cataDic[@"isLeaf"] = child[@"isLeaf"];
RADataObject *childcataModel = [RADataObject dataObjectWithName:@"" children:nil];
childcataModel.type = 1;
childcataModel.cataDic = cataDic;
[children addObject:childcataModel];
}
The text was updated successfully, but these errors were encountered: