Search code examples
iphoneobjective-ciosanimationuislider

How to implement image animation via an invisible UIslider?


I got a question is using UISlider to control a image animation

And this image has invisible slider to cover on it ...

It looks like this enter image description here

My question is ... how to adjust image angle ,when I change my slide value ???

So that's I can let the image animation from left pic to right pic ???

Thanks

Webber

upload the sample code Here

Hope someone can help me to figure out this problem


Solution

  • Do you want to rotate the image? Then use:

    imageView.transform =  GAffineTransformRotate(imageView.transform,RADIANS(degreesToRotate));