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.
精彩评论