Is there a way to hide the scroll indicators in a UIScrollView?

前端 未结 7 1612
无人共我
无人共我 2020-12-12 20:12

I\'ve got a use case where those indicators disturb the user interaction. Can I subclass and override a method or do something similar to remove the scroll indicators from t

7条回答
  •  难免孤独
    2020-12-12 20:35

    For UIScrollView in Swift

    scrollView?.showsHorizontalScrollIndicator = false
    scrollView?.showsVerticalScrollIndicator = false
    

提交回复
热议问题