A
UISlider
is similar to a
UIPageControl
.
main.m
SliderAppDelegate
View
continuous
propery of the slider to
NO
?
valueChanged:
method of class
View
,
label.center = CGPointMake( self.bounds.origin.x + self.bounds.size.width / 2, self.bounds.origin.y + self.bounds.size.height / 2 - slider.frame.size.height / 2 - 10 - slider.value + slider.minimumValue );
initWithFrame:
View
.
Multiplication by
π/180
converts degrees to radians.
//90 degrees counterclockwise slider.transform = CGAffineTransformMakeRotation(-90 * M_PI / 180);You will have to move the label out of the way.