[英]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. 因此,我拥有创建iPhone的Scroller Dial所需的所有图像,但是我不知道该如何设置它们的动画。
Basically I have a scroll dial that will essentially act as a UISlider but i'd like it to slow down as it spins. 基本上,我有一个滚动拨号盘,它实际上将充当UISlider,但我希望它在旋转时减速。
How can I do something like that or where should I look to learn about these things 我该如何做类似的事情,或者应该去哪里学习这些东西?
Use a UIScrollView. 使用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.
这将降低您的需求,如果您需要将其形成为特定的“刻度”,请将scrollview的contentOffset滚动到适当的刻度。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.