Vibhor Goyal
Vibhor Goyal

Reputation: 2425

How to build knob like spinner in iOS sdk?

I want to build a spinner for menu selection like the one in where to? IPhone app as shown in image below. Any hints?

alt text

Upvotes: 0

Views: 901

Answers (1)

eliego
eliego

Reputation: 2289

Doesn't need to be very hard. The easiest is probably a UIImageView with the image of the actual spinner, and another UIImageView with the yellow selection highlight (a transparent PNG) overlaying. The rotation can then be controlled with the transform property of the first UIImageView.

This should of course be nicely encapsulated in a custom UIView subclass.

Upvotes: 1

Related Questions