Augustyniak / RATreeView

Library providing easy-to-use interface for displaying tree structures on iOS and tvOS.
MIT License
2.49k stars 466 forks source link

first `expandRowForItem` not animate #224

Open DingSoung opened 7 years ago

DingSoung commented 7 years ago

free-converter com-20170606024939-4083835175

    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];
    }