I am working on an application which needs to rotate the slider at one end. However, by using CGAffineTransformMakeRotation(), I can only rotate the slider at the centre.
What should I do in order to rotate the slider at the end point? If possible, please give a short paragraph of sample code. Thanks a lot.
I rotate a
UIImageViewby setting theanchorPointproperty for the view’s layer. e.g.and then applying a
CATransform3DRotateas the layer’stransformpropertyI found this from Apple’s metronome example, so it’s worth checking that out. Hope that helps