views:

24

answers:

0

Hi all! in response for which method rotate an image in iphone with a finger?

I have such code, but I dont know in response to which method can I call it. thanx!

UIImage *image = [UIImage imageNamed:@"image.png"];
UIImageView *imageView = [ [ UIImageView alloc ] initWithFrame:CGRectMake(0.0, 0.0, image.size.width, image.size.height) ];
imageView.image = image;
[self addSubview:imageView];
CGAffineTransform rotate = CGAffineTransformMakeRotation( 1.0 / 180.0 * 3.14 );
[imageView setTransform:rotate];