Open DingSoung opened 7 years ago
BOOL listIten = [self.treeView isCellForItemExpanded:model] == NO; if (listIten) { [self.treeView expandRowForItem:model expandChildren:NO withRowAnimation:RATreeViewRowAnimationAutomatic]; } else { [self.treeView collapseRowForItem:model collapseChildren:YES withRowAnimation:RATreeViewRowAnimationAutomatic]; }