CPSlider 介绍
CPSlider 是 UISlider 的改进版,is a drop-in, subclass replacement for UISlider that
allows varying scrubbing speeds as the user drags away from the slider thumb,
emulating the slider used in the iOS iPod music player. It also includes
delegate callbacks to allow an object to be notified of scrubbing speed
changes.
实例代码:
CPSlider *slider = [[CPSlider alloc] initWithFrame:CGRectMake(18, 166, 284, 23)]; slider.minimumValue = 0.0f; slider.maximumValue = 1.0f; [self.view addSubview:slider] [self.slider addTarget:self action:@selector(sliderValueDidChange:) forControlEvents:UIControlEventValueChanged];
CPSlider 官网
https://github.com/cbpowell/CPSlider
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。