【发布时间】:2018-09-18 08:30:39
【问题描述】:
我有一个 NSCollectionView,我想隐藏水平滚动指示器。
我试过了
collectionView.enclosingScrollView?.verticalScroller?.isHidden = true
但它不起作用。
提前谢谢你。
【问题讨论】:
-
试试这行代码。 collectionView.enclosureScrollView?.horizontalScroller?.isHidden = true
-
你明白了吗?我有同样的问题,但取消选中“显示 xyz Scroller”不会删除滚动指示器。我认为 NSCollectionViewFlowLayout 可能会再次添加指标。
-
很遗憾没有。
-
@Jonathanff 嗨,你知道了吗?
-
很遗憾没有:(
标签: swift macos nscollectionview