像 NSScroller 这样的 iO
我正在寻找像 NSScroller 这样的 iOS - 曲目仅在滚动时出现 - 惯性支持 - 相同的外观和感觉。
你知道这样的东西是否已经存在吗?
谢谢和问候,
I am looking an iOS like NSScroller
- the track only appear when scrolling
- inertia support
- same look and feel.
Do you know if something like this already exists?
Thanks and regards,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知。除了 NSScroller 之外,您可能还必须继承 NSScrollView 的子类。子类化 NSScroller 将允许您生成仅在滚动期间可见的滚动条的外观和感觉。
惯性滚动必须内置到 NSScrollView 本身中,尽管我知道 Mac 使用触控板并且可以选择在系统偏好设置中打开惯性滚动。
Not that I'm aware of. You would likely have to subclass NSScrollView in addition to NSScroller. Subclassing NSScroller would allow you to produce the look and feel of the scrollbar that is only visible during scrolling.
The inertial scrolling would have to be built into the NSScrollView itself, although I know that Mac's using a trackpad and have the option to turn on inertial scrolling in System Preferences.