简体   繁体   中英

How can I create a Scrolling Dial for the iPhone

So I have all the images I need to create a Scroller Dial for the iPhone, but I don't know how I should animate them.

Basically I have a scroll dial that will essentially act as a UISlider but i'd like it to slow down as it spins.

How can I do something like that or where should I look to learn about these things

Use a UIScrollView. That will decelerate how you want and if you need it to form to a specific "tick", scroll the contentOffset of the scrollview to the proper tick.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM