开发者

Using a progress bar as a seek bar

How can a 开发者_运维百科progress bar be used as a seek bar?


You want to use an UISlider. Update its position periodically according to the playing position. Adjust your playing position whenever the slider calls its action.


You should build a custom control for that.

There are tools to make this extremely easy. I don't want to do advertisement, but have a look at Opacity. There you can create vector drawings with paramters like one for the current progress value. And you can have this drawing exported as source code which will create a UIView or UIControl subclass (at your choice) that has a property to set the current progress.

At least that's the way I'd do this.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜