开发者

Custom selection mechanism

开发者 https://www.devze.com 2023-03-01 05:23 出处:网络
I\'m trying to create a little slider mechanism which operates as a box/view with a static line image in the center and behind it are pins. The pins look like marks on a ruler. When you slide the mark

I'm trying to create a little slider mechanism which operates as a box/view with a static line image in the center and behind it are pins. The pins look like marks on a ruler. When you slide the marks to the left or right; they keep coming continuously (a loop). And I need to use this as a controller of a view, like a selector. All it needs to do is scroll through a list when the pins are slid. How can I 开发者_运维知识库put this together?


Create a UIView and add a UISwipeGestureRecogniser to it. When the swipe occurs update a ivar and either redraw or animate a bunch of repeating UIimageView subviews.

The latter will be preferable for efficiency and smoothness.

0

精彩评论

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